- Timestamp:
- 13 Nov 2019, 10:38:16 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r15802 r15805 108 108 grok.context(IStudent) 109 109 grok.name('get_matric_number') 110 grok.require('waeup. viewStudent')110 grok.require('waeup.manageStudent') 111 111 112 112 def update(self): -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r15802 r15805 194 194 if next_integer == 0: 195 195 return _('Matriculation number cannot be set.'), None 196 if not student.state in (RETURNING, PAID, REGISTERED, VALIDATED): 197 return _('Matriculation number cannot be set.'), None 196 198 year = unicode(student.entry_session)[2:] 197 199 return None, "%s/%06d" % (year, next_integer) -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/viewlets.py
r15802 r15805 36 36 grok.context(IStudent) 37 37 grok.view(StudentBaseDisplayFormPage) 38 grok.require('waeup. viewStudent')38 grok.require('waeup.manageStudent') 39 39 icon = 'actionicon_count.png' 40 40 text = _('Get Matriculation Number')
Note: See TracChangeset for help on using the changeset viewer.