Changeset 8428 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 12 May 2012, 07:01:04 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8422 r8428 599 599 600 600 def update(self): 601 success, msg = self.context.approveApplicantPayment()602 if success:601 success, msg, log = self.context.approveApplicantPayment() 602 if log is not None: 603 603 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 604 self.context.__parent__.loggerInfo( 605 ob_class, 'valid callback: %s' % self.context.p_id) 604 self.context.__parent__.loggerInfo(ob_class, log) 606 605 self.flash(msg) 607 606 return -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py
r8422 r8428 45 45 wf_info.fireTransition('pay') 46 46 except InvalidTransitionError: 47 return False, 'Error: %s' % sys.exc_info()[1] 48 return True, _('Valid callback received.') 47 msg = log = 'Error: %s' % sys.exc_info()[1] 48 return False, msg, log 49 log = 'successful payment: %s' % self.p_id 50 msg = _('Successful payment') 51 return False, msg, log 49 52 50 53 def approveApplicantPayment(self): … … 52 55 """ 53 56 if self.p_state == 'paid': 54 return False, _('This ticket has already been paid.') 57 return False, _('This ticket has already been paid.'), None 55 58 self.approve() 56 59 return self.doAfterApplicantPayment()
Note: See TracChangeset for help on using the changeset viewer.