Ignore:
Timestamp:
3 Apr 2014, 12:53:11 (11 years ago)
Author:
Henrik Bettermann
Message:

We do no longer need the success return value.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r11567 r11570  
    18561856
    18571857    def update(self):
    1858         success, msg, log = self.context.approveStudentPayment()
     1858        msg, log = self.context.approveStudentPayment()
    18591859        if log is not None:
    18601860            # Add log message to students.log
  • main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py

    r10906 r11570  
    107107            error = self._createActivationCodes()
    108108            if error is not None:
    109                 return False, error, error
     109                return error, error
    110110        log = 'successful %s payment: %s' % (self.p_category, self.p_id)
    111111        msg = _('Successful payment')
    112         return True, msg, log
     112        return msg, log
    113113
    114114    def doAfterStudentPaymentApproval(self):
     
    118118            error = self._createActivationCodes()
    119119            if error is not None:
    120                 return False, error, error
     120                return error, error
    121121        log = '%s payment approved: %s' % (self.p_category, self.p_id)
    122122        msg = _('Payment approved')
    123         return True, msg, log
     123        return msg, log
    124124
    125125    def approveStudentPayment(self):
     
    127127        """
    128128        if self.p_state == 'paid':
    129             return False, _('This ticket has already been paid.'), None
     129            return _('This ticket has already been paid.'), None
    130130        self.approve()
    131131        return self.doAfterStudentPaymentApproval()
Note: See TracChangeset for help on using the changeset viewer.