Changeset 16244 for main/kofacustom.iuokada/trunk/src
- Timestamp:
- 23 Sep 2020, 19:46:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/utils.py
r16166 r16244 21 21 import grok 22 22 from time import time 23 from datetime import datetime 23 24 from kofacustom.nigeria.applicants.utils import NigeriaApplicantsUtils 24 25 from waeup.kofa.applicants.workflow import (INITIALIZED, … … 109 110 """ 110 111 timestamp = ("%d" % int(time()*10000))[1:] 111 session = str(container.year) 112 try: 113 session_config = grok.getSite()['configuration'][session] 114 except KeyError: 115 return _(u'Session configuration object is not available.') 112 if container.year: 113 session = str(container.year) 114 try: 115 session_config = grok.getSite()['configuration'][session] 116 except KeyError: 117 return _(u'Session configuration object is not available.') 116 118 payment.p_id = "p%s" % timestamp 117 119 payment.p_item = container.title 118 payment.p_session = container.year 120 if container.year: 121 payment.p_session = container.year 122 else: 123 payment.p_session = datetime.now().year 119 124 payment.amount_auth = 0.0 120 125 if applicant.special:
Note: See TracChangeset for help on using the changeset viewer.