Ignore:
Timestamp:
14 May 2014, 05:17:40 (11 years ago)
Author:
Henrik Bettermann
Message:

Use init_update and samePaymentMade methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r11636 r11646  
    6767
    6868    def update(self):
    69         student, certificate, xmldict = super(
    70             CustomInterswitchPageStudent, self).update()
     69        error = self.init_update()
     70        if error:
     71            self.flash(error, type='danger')
     72            self.redirect(self.url(self.context, '@@index'))
     73            return
     74        student = self.student
     75        xmldict = self.xmldict
    7176        # Provider data
    7277        xmldict['detail_ref'] = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.