- Timestamp:
- 11 May 2012, 16:32:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r8420 r8422 60 60 return None 61 61 62 def approveStudentPayment(self):63 """ Approve payment and create respective activation code.62 def doAfterStudentPayment(self): 63 """Process student after payment was made. 64 64 """ 65 if self.p_state == 'paid':66 return False, _('This ticket has already been paid.')67 65 student = self.getStudent() 68 self.approve()69 66 if self.p_category == 'clearance': 70 67 # Create CLR access code … … 93 90 return True, _('Valid callback received.') 94 91 92 def approveStudentPayment(self): 93 """Approve payment and process student. 94 """ 95 if self.p_state == 'paid': 96 return False, _('This ticket has already been paid.') 97 self.approve() 98 return self.doAfterStudentPayment() 99 100 95 101 StudentOnlinePayment = attrs_to_fields(StudentOnlinePayment) 96 102
Note: See TracChangeset for help on using the changeset viewer.