Changeset 10632 for main/waeup.kofa/trunk
- Timestamp:
- 21 Sep 2013, 06:05:36 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/permissions.py
r10465 r10632 59 59 grok.name('waeup.showStudents') 60 60 61 class EditScores(grok.Permission): 62 grok.name('waeup.editScores') 63 61 64 class EditUser(grok.Permission): 62 65 grok.name('waeup.editUser') … … 223 226 grok.title(u'Lecturer') 224 227 grok.permissions('waeup.showStudents', 228 'waeup.editScores', 225 229 'waeup.viewAcademics', 226 230 'waeup.exportData') … … 301 305 'waeup.clearStudent', 'waeup.payStudent', 302 306 'waeup.uploadStudentFile', 'waeup.showStudents', 307 'waeup.editScores', 303 308 'waeup.triggerTransition', 304 309 'waeup.viewStudentsContainer','waeup.viewStudentsTab', … … 333 338 'waeup.clearStudent', 'waeup.payStudent', 334 339 'waeup.uploadStudentFile', 'waeup.showStudents', 340 'waeup.editScores', 335 341 #'waeup.triggerTransition', 336 342 'waeup.viewStudentsContainer','waeup.viewStudentsTab', -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10631 r10632 3047 3047 """ 3048 3048 grok.context(ICourse) 3049 grok.require('waeup. manageStudent')3049 grok.require('waeup.editScores') 3050 3050 grok.name('edit_scores') 3051 3051 grok.template('editscorespage') … … 3071 3071 self.current_academic_session = grok.getSite()[ 3072 3072 'configuration'].current_academic_session 3073 if not self.current_academic_session: 3074 self.flash(_('Current academic session not set.')) 3075 self.redirect(self.url(self.context)) 3076 return 3073 3077 datatable.need() 3074 3078 self.tickets = self._searchCatalog(self.current_academic_session) … … 3077 3081 if not self.tickets: 3078 3082 self.flash(_('No student found.')) 3083 self.redirect(self.url(self.context)) 3079 3084 return 3080 3085 if 'UPDATE' in form:
Note: See TracChangeset for help on using the changeset viewer.