Ignore:
Timestamp:
4 Apr 2014, 06:50:21 (11 years ago)
Author:
Henrik Bettermann
Message:

We do not need to customize doAfterApplicantPaymentApproval and doAfterApplicantPayment here. It has been done in the base package.

File:
1 edited

Legend:

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

    r11574 r11576  
    4343        return
    4444
    45     def doAfterApplicantPaymentApproval(self):
    46         """Process applicant after payment was approved.
    47 
    48         We do not set applicant to paid in case of special payments.
    49         """
    50         wf_info = IWorkflowInfo(self.__parent__)
    51         try:
    52             wf_info.fireTransition('approve')
    53         except InvalidTransitionError:
    54             msg = log = 'Error: %s' % sys.exc_info()[1]
    55             return msg, log
    56         log = 'payment approved: %s' % self.p_id
    57         msg = _('Payment approved')
    58         return msg, log
    59 
    60     def doAfterApplicantPayment(self):
    61         """Process applicant after payment was made.
    62 
    63         We do not set applicant to paid in case of special payments.
    64         """
    65         wf_info = IWorkflowInfo(self.__parent__)
    66         try:
    67             wf_info.fireTransition('pay')
    68         except InvalidTransitionError:
    69             msg = log = 'Error: %s' % sys.exc_info()[1]
    70             return msg, log
    71         log = 'successful payment: %s' % self.p_id
    72         msg = _('Successful payment')
    73         return msg, log
    74 
    7545CustomApplicantOnlinePayment = attrs_to_fields(
    7646    CustomApplicantOnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.