Ignore:
Timestamp:
3 Dec 2016, 06:50:13 (8 years ago)
Author:
Henrik Bettermann
Message:

Add _redirect_no_student for redirecting alumni to the application section.

File:
1 edited

Legend:

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

    r14293 r14305  
    28692869        return
    28702870
     2871    def _redirect_no_student(self):
     2872        # No record found, this is the truth. We do not redirect here.
     2873        # We are using this method in custom packages
     2874        # for redirecting alumni to the application section.
     2875        self.flash(_('No student record found.'), type="warning")
     2876        return
     2877
    28712878    def _pw_used(self):
    28722879        # XXX: False if password has not been used. We need an extra
     
    29082915            notify(grok.ObjectModifiedEvent(student))
    29092916        else:
    2910             # No record found, this is the truth.
    2911             self.flash(_('No student record found.'), type="warning")
     2917            self._redirect_no_student()
    29122918            return
    29132919
Note: See TracChangeset for help on using the changeset viewer.