Changeset 16444 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 3 Apr 2021, 15:35:01 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r16431 r16444 110 110 return 111 111 112 def emit_lock_message(view ):112 def emit_lock_message(view, msg=None): 113 113 """Flash a lock message. 114 114 """ 115 if msg: 116 view.flash(msg, type="warning") 117 view.redirect(view.url(view.context)) 118 return 115 119 view.flash(_('The requested form is locked (read-only).'), type="warning") 116 120 view.redirect(view.url(view.context)) … … 2932 2936 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 2933 2937 if self.context.student.state not in PORTRAIT_CHANGE_STATES: 2934 emit_lock_message(self) 2938 emit_lock_message(self, 2939 _('This form is locked. You are in the wrong state.')) 2935 2940 return 2936 2941 super(StudentFilesUploadPage, self).update()
Note: See TracChangeset for help on using the changeset viewer.