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

We do no longer need the success return value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r10914 r11570  
    4949        except InvalidTransitionError:
    5050            msg = log = 'Error: %s' % sys.exc_info()[1]
    51             return False, msg, log
     51            return msg, log
    5252        log = 'payment approved: %s' % self.p_id
    5353        msg = _('Payment approved')
    54         return False, msg, log
     54        return msg, log
    5555
    5656    def doAfterApplicantPayment(self):
     
    6262        except InvalidTransitionError:
    6363            msg = log = 'Error: %s' % sys.exc_info()[1]
    64             return False, msg, log
     64            return msg, log
    6565        log = 'successful payment: %s' % self.p_id
    6666        msg = _('Successful payment')
    67         return False, msg, log
     67        return msg, log
    6868
    6969    def approveApplicantPayment(self):
     
    7171        """
    7272        if self.p_state == 'paid':
    73             return False, _('This ticket has already been paid.'), None
     73            return _('This ticket has already been paid.'), None
    7474        self.approve()
    7575        return self.doAfterApplicantPaymentApproval()
Note: See TracChangeset for help on using the changeset viewer.