- Timestamp:
- 3 Apr 2014, 16:19:43 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/payment.py
r9992 r11573 41 41 return 42 42 43 def doAfterApplicantPaymentApproval(self): 44 """Process applicant after payment was approved. 45 46 We do not set applicant to paid in case of special payments. 47 """ 48 wf_info = IWorkflowInfo(self.__parent__) 49 try: 50 wf_info.fireTransition('approve') 51 except InvalidTransitionError: 52 msg = log = 'Error: %s' % sys.exc_info()[1] 53 return msg, log 54 log = 'payment approved: %s' % self.p_id 55 msg = _('Payment approved') 56 return msg, log 57 58 def doAfterApplicantPayment(self): 59 """Process applicant after payment was made. 60 61 We do not set applicant to paid in case of special payments. 62 """ 63 wf_info = IWorkflowInfo(self.__parent__) 64 try: 65 wf_info.fireTransition('pay') 66 except InvalidTransitionError: 67 msg = log = 'Error: %s' % sys.exc_info()[1] 68 return msg, log 69 log = 'successful payment: %s' % self.p_id 70 msg = _('Successful payment') 71 return msg, log 72 43 73 CustomApplicantOnlinePayment = attrs_to_fields( 44 74 CustomApplicantOnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.