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

Use init_update method.

File:
1 edited

Legend:

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

    r11638 r11647  
    5757
    5858    def update(self):
    59         student, certificate, xmldict = super(
    60             CustomInterswitchPageStudent, self).update()
     59        error = self.init_update()
     60        if error:
     61            self.flash(error, type='danger')
     62            self.redirect(self.url(self.context, '@@index'))
     63            return
     64        student = self.student
     65        xmldict = self.xmldict
    6166        # Provider data
    6267        xmldict['detail_ref'] = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.