Changeset 17077


Ignore:
Timestamp:
26 Aug 2022, 08:50:10 (2 years ago)
Author:
Henrik Bettermann
Message:

Lock AddStudyLevelFormPage? again.

File:
1 edited

Legend:

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

    r16968 r17077  
    13641364        return
    13651365
    1366 #class CustomAddStudyLevelFormPage(AddStudyLevelFormPage):
    1367 #    """ This page is temporarily locked.
    1368 #    """
    1369 #    def update(self):
    1370 #        if self.context.student.current_mode == 'ug_ft' \
    1371 #            and self.context.student.current_session == 2019:
    1372 #            emit_lock_message(self)
    1373 #            return
    1374 #        super(CustomAddStudyLevelFormPage, self).update()
    1375 #        return
     1366class CustomAddStudyLevelFormPage(AddStudyLevelFormPage):
     1367    """ This page is temporarily locked.
     1368    """
     1369    def update(self):
     1370        if self.context.student.current_mode == 'ug_ft' \
     1371            and self.context.student.current_session == 2020:
     1372            emit_lock_message(self)
     1373            return
     1374        super(CustomAddStudyLevelFormPage, self).update()
     1375        return
Note: See TracChangeset for help on using the changeset viewer.