- Timestamp:
- 4 Apr 2014, 08:37:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r11570 r11580 107 107 error = self._createActivationCodes() 108 108 if error is not None: 109 return error, error109 return 'danger', error, error 110 110 log = 'successful %s payment: %s' % (self.p_category, self.p_id) 111 111 msg = _('Successful payment') 112 return msg, log 112 flashtype = 'success' 113 return flashtype, msg, log 113 114 114 115 def doAfterStudentPaymentApproval(self): … … 118 119 error = self._createActivationCodes() 119 120 if error is not None: 120 return error, error121 return 'danger', error, error 121 122 log = '%s payment approved: %s' % (self.p_category, self.p_id) 122 123 msg = _('Payment approved') 123 return msg, log 124 flashtype = 'success' 125 return flashtype, msg, log 124 126 125 127 def approveStudentPayment(self): … … 127 129 """ 128 130 if self.p_state == 'paid': 129 return _('This ticket has already been paid.'), None131 return 'warning', _('This ticket has already been paid.'), None 130 132 self.approve() 131 133 return self.doAfterStudentPaymentApproval()
Note: See TracChangeset for help on using the changeset viewer.