Ignore:
Timestamp:
11 May 2012, 16:32:07 (13 years ago)
Author:
Henrik Bettermann
Message:

Use same technique for approval of payments in students and in applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py

    r8420 r8422  
    6060            return None
    6161
    62     def approveStudentPayment(self):
    63         """Approve payment and create respective activation code.
     62    def doAfterStudentPayment(self):
     63        """Process student after payment was made.
    6464        """
    65         if self.p_state == 'paid':
    66             return False, _('This ticket has already been paid.')
    6765        student = self.getStudent()
    68         self.approve()
    6966        if self.p_category == 'clearance':
    7067            # Create CLR access code
     
    9390        return True, _('Valid callback received.')
    9491
     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
    95101StudentOnlinePayment = attrs_to_fields(StudentOnlinePayment)
    96102
Note: See TracChangeset for help on using the changeset viewer.