Commit 9ee705b9 authored by Romain Courteaud's avatar Romain Courteaud

slapos_payzen: new id generator per node is used

parent b87f13ce
...@@ -7,7 +7,10 @@ integration_site = portal.restrictedTraverse(portal.portal_preferences.getPrefer ...@@ -7,7 +7,10 @@ integration_site = portal.restrictedTraverse(portal.portal_preferences.getPrefer
payzen_id = integration_site.getCategoryFromMapping('Causality/%s' % context.getId().replace('-', '_')) payzen_id = integration_site.getCategoryFromMapping('Causality/%s' % context.getId().replace('-', '_'))
if payzen_id != 'causality/%s' % context.getId().replace('-', '_'): if payzen_id != 'causality/%s' % context.getId().replace('-', '_'):
# ok when using per day generator
date, payzen_id = payzen_id.split('_', 1) date, payzen_id = payzen_id.split('_', 1)
# and then switched to per day / per node generator
date = date.split('.', 1)[0]
return DateTime(date).toZone('UTC'), payzen_id return DateTime(date).toZone('UTC'), payzen_id
else: else:
return None, None return None, None
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