Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fer que la llibreria rebi dos URLs (una de producció i una de test) #80

Open
gdalmau opened this issue Jul 5, 2017 · 0 comments
Open
Assignees

Comments

@gdalmau
Copy link
Contributor

gdalmau commented Jul 5, 2017

Inicialitzar el servei amb dos URLs (url_production i url_test) i utilitzar una o altra en funció de si és test o no.

if self.test_mode and self.url_test:
    address = '{0}{1}'.format(self.url_test, config['type_address'])
    service = client.create_service(config['binding_name'], address)
elif not self.test_mode and self.url_production:
    address = '{0}{1}'.format(self.url_production, config['type_address'])
    service = client.create_service(config['binding_name'], address)
else:
    service = client.service

return service
@gdalmau gdalmau self-assigned this Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant