Changeset 15146 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py
- Timestamp:
- 18 Sep 2018, 19:41:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py
r15143 r15146 1165 1165 return 1166 1166 1167 class StudentTranscriptSignView(UtilityView, grok.View): 1168 """ View to sign transcript 1169 """ 1170 grok.context(IStudentStudyCourse) 1171 grok.name('sign_transcript') 1172 grok.require('waeup.signTranscript') 1173 1174 def update(self, SUBMIT=None): 1175 if self.context.student.state != TRANSVAL: 1176 self.flash(_('Student is in wrong state.'), type="warning") 1177 self.redirect(self.url(self.context)) 1178 return 1179 self.flash(_('Transcript signed.')) 1180 self.redirect(self.url(self.context)) 1181 return 1182 1183 def render(self): 1184 return 1185 1167 1186 class StudentTranscriptReleaseFormPage(KofaEditFormPage): 1168 1187 """ Page to release transcript … … 1230 1249 """ Page to display the student's transcript. 1231 1250 """ 1232 grok.context(IStudentStudyCourse Transcript)1251 grok.context(IStudentStudyCourse) 1233 1252 grok.name('transcript') 1234 1253 grok.require('waeup.viewTranscript')
Note: See TracChangeset for help on using the changeset viewer.