- Timestamp:
- 8 Jul 2022, 06:11:37 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r16545 r17009 62 62 """ 63 63 timestamp = ("%d" % int(time()*10000))[1:] 64 if container.year:65 session = str(container.year)66 try:67 session_config = grok.getSite()['configuration'][session]68 except KeyError:69 return _(u'Session configuration object is not available.')70 64 payment.p_id = "p%s" % timestamp 71 65 payment.p_item = container.title … … 77 71 if applicant.special: 78 72 if applicant.special_application: 73 try: 74 session_config = grok.getSite()['configuration'][ 75 str(payment.p_session)] 76 except KeyError: 77 return _(u'Session configuration object is not available.') 79 78 fee_name = applicant.special_application + '_fee' 80 79 payment.amount_auth = getattr(session_config, fee_name, None)
Note: See TracChangeset for help on using the changeset viewer.