Changeset 8524 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
- Timestamp:
- 26 May 2012, 05:42:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r8046 r8524 19 19 """ 20 20 21 from time import time 21 22 import grok 22 23 from waeup.kofa.applicants.interfaces import IApplicantsUtils … … 36 37 'form.screening_score': _(u'Process Data'), 37 38 } 39 40 def setPaymentDetails(self, container, payment): 41 """Set the payment data of an applicant. 42 """ 43 timestamp = "%d" % int(time()*1000) 44 session = str(container.year) 45 try: 46 session_config = grok.getSite()['configuration'][session] 47 except KeyError: 48 return _(u'Session configuration object is not available.') 49 payment.p_id = "p%s" % timestamp 50 payment.p_item = container.title 51 payment.p_session = container.year 52 payment.p_category = 'application' 53 payment.amount_auth = session_config.application_fee 54 return None
Note: See TracChangeset for help on using the changeset viewer.