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/applicants/browser.py

    r8420 r8422  
    599599
    600600    def update(self):
    601         self.wf_info = IWorkflowInfo(self.context.__parent__)
    602         try:
    603             self.wf_info.fireTransition('pay')
    604         except InvalidTransitionError:
    605             self.flash('Error: %s' % sys.exc_info()[1])
    606             return
    607         self.context.approve()
    608         ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
    609         self.context.__parent__.loggerInfo(
    610             ob_class, 'valid callback: %s' % self.context.p_id)
    611         self.flash(_('Valid callback received.'))
     601        success, msg = self.context.approveApplicantPayment()
     602        if success:
     603            ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     604            self.context.__parent__.loggerInfo(
     605                ob_class, 'valid callback: %s' % self.context.p_id)
     606        self.flash(msg)
    612607        return
    613608
Note: See TracChangeset for help on using the changeset viewer.