Ignore:
Timestamp:
21 May 2015, 20:57:55 (9 years ago)
Author:
Henrik Bettermann
Message:

Test if the ticket-expire mechanism works, for both applicant and student payments.

Fix code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/browser.py

    r12511 r12979  
    6060
    6161    def update(self):
    62         super(CustomInterswitchPageStudent, self).update()
     62        error = self.init_update()
     63        if error:
     64            self.flash(error, type='danger')
     65            self.redirect(self.url(self.context, '@@index'))
     66            return
    6367        student = self.student
    6468        xmldict = self.xmldict
     
    120124
    121125    def update(self):
    122         super(CustomInterswitchPageApplicant, self).update()
     126        error = self.init_update()
     127        if error:
     128            self.flash(error, type='danger')
     129            self.redirect(self.url(self.context, '@@index'))
     130            return
    123131        xmldict = {}
    124132        provider_amt = 400.0
Note: See TracChangeset for help on using the changeset viewer.