Ignore:
Timestamp:
21 May 2019, 09:16:47 (5 years ago)
Author:
Henrik Bettermann
Message:

Add graduated students filter.

Inform students_catalog after setting workflow state.

File:
1 edited

Legend:

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

    r15405 r15417  
    263263        form = self.request.form
    264264        self.hitlist = []
    265         if form.get('searchtype', None) in ('suspended', TRANSREQ, TRANSVAL):
     265        if form.get('searchtype', None) in (
     266            'suspended', TRANSREQ, TRANSVAL, GRADUATED):
    266267            self.searchtype = form['searchtype']
    267268            self.searchterm = None
     
    305306        form = self.request.form
    306307        self.hitlist = []
    307         if form.get('searchtype', None) in ('suspended', TRANSREQ, TRANSVAL):
     308        if form.get('searchtype', None) in (
     309            'suspended', TRANSREQ, TRANSVAL, GRADUATED):
    308310            self.searchtype = form['searchtype']
    309311            self.searchterm = None
     
    374376        self.context.addStudent(student)
    375377        IWorkflowState(student).setState(GRADUATED)
     378        notify(grok.ObjectModifiedEvent(student))
    376379        self.flash(_('Student record created.'))
    377380        self.redirect(self.url(self.context[student.student_id], 'index'))
Note: See TracChangeset for help on using the changeset viewer.