Changeset 14346 for main/waeup.kofa


Ignore:
Timestamp:
15 Dec 2016, 08:49:38 (8 years ago)
Author:
Henrik Bettermann
Message:

Use correct colors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r14256 r14346  
    662662
    663663    def update(self):
    664         msg = self.context.createStudent(view=self)[1]
    665         self.flash(msg, type='warning')
     664        success, msg = self.context.createStudent(view=self)
     665        if success:
     666            self.flash(msg)
     667        else:
     668            self.flash(msg, type='warning')
    666669        self.redirect(self.url(self.context))
    667670        return
Note: See TracChangeset for help on using the changeset viewer.