- Timestamp:
- 1 Jul 2015, 16:22:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r13076 r13123 51 51 session_config = grok.getSite()['configuration'][session] 52 52 except KeyError: 53 return _(u'Session configuration object is not available.') , None53 return _(u'Session configuration object is not available.') 54 54 payment.p_id = "p%s" % timestamp 55 55 payment.p_item = container.title … … 59 59 if applicant.special_application: 60 60 fee_name = applicant.special_application + '_fee' 61 payment.amount_auth = getattr(session_config, fee_name, 0.0) 61 payment.amount_auth = getattr(session_config, fee_name, None) 62 if payment.amount_auth in (0.0, None): 63 return _('Amount could not be determined.') 62 64 payment.p_category = applicant.special_application 63 65 return … … 69 71 payment.amount_auth = session_config.application_fee 70 72 if payment.amount_auth in (0.0, None): 71 return _('Amount could not be determined.') , None73 return _('Amount could not be determined.') 72 74 return 73 75
Note: See TracChangeset for help on using the changeset viewer.