Commit 2b40dbab authored by Romain Courteaud's avatar Romain Courteaud

slapos_payzen: change coding style

parent 0a77dc66
......@@ -3,10 +3,10 @@ relative_url = context.getRelativeUrl()
if relative_url == 'currency_module/CNY':
integration_site = portal.restrictedTraverse(portal.portal_preferences.getPreferredWechatIntegrationSite())
else:
elif relative_url == 'currency_module/EUR':
integration_site = portal.restrictedTraverse(portal.portal_preferences.getPreferredPayzenIntegrationSite())
else:
# Only EUR is supported for now
assert relative_url in ('currency_module/EUR', 'currency_module/CNY')
# Only EUR is supported for now
assert relative_url in ('currency_module/EUR', 'currency_module/CNY')
return integration_site.getMappingFromCategory('resource/%s' % relative_url).split('/', 1)[-1]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment