Changeset 11576
- Timestamp:
- 4 Apr 2014, 06:50:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/payment.py
r11574 r11576 43 43 return 44 44 45 def doAfterApplicantPaymentApproval(self):46 """Process applicant after payment was approved.47 48 We do not set applicant to paid in case of special payments.49 """50 wf_info = IWorkflowInfo(self.__parent__)51 try:52 wf_info.fireTransition('approve')53 except InvalidTransitionError:54 msg = log = 'Error: %s' % sys.exc_info()[1]55 return msg, log56 log = 'payment approved: %s' % self.p_id57 msg = _('Payment approved')58 return msg, log59 60 def doAfterApplicantPayment(self):61 """Process applicant after payment was made.62 63 We do not set applicant to paid in case of special payments.64 """65 wf_info = IWorkflowInfo(self.__parent__)66 try:67 wf_info.fireTransition('pay')68 except InvalidTransitionError:69 msg = log = 'Error: %s' % sys.exc_info()[1]70 return msg, log71 log = 'successful payment: %s' % self.p_id72 msg = _('Successful payment')73 return msg, log74 75 45 CustomApplicantOnlinePayment = attrs_to_fields( 76 46 CustomApplicantOnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.