Changeset 14948 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 8 Feb 2018, 06:52:37 (7 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r14934 r14948 664 664 grok.context(IApplicant) 665 665 grok.name('createstudent') 666 grok.require('waeup. manageStudent')666 grok.require('waeup.createStudents') 667 667 668 668 def update(self): … … 685 685 #grok.context(IApplicantsContainer) 686 686 grok.name('createallstudents') 687 grok.require('waeup. managePortal')687 grok.require('waeup.createStudents') 688 688 689 689 def update(self): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/permissions.py
r14511 r14948 57 57 grok.name('waeup.payApplicant') 58 58 59 class CreateStudents(grok.Permission): 60 """The CreateStudents permission allows to create a bunch student 61 records from application records. 62 """ 63 grok.name('waeup.createStudents') 64 59 65 # Local role 60 66 … … 96 102 grok.permissions('waeup.manageApplication', 'waeup.viewApplication', 97 103 'waeup.viewApplicantsTab', 'waeup.payApplicant') 104 105 class StudentsCreator(grok.Role): 106 """The Students Creator is allowed to create a bunch of student 107 records from application records. 108 """ 109 grok.name('waeup.StudentsCreator') 110 grok.title(u'Students Creator') 111 grok.permissions('waeup.viewApplication', 112 'waeup.viewApplicantsTab', 113 'waeup.createStudents') -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py
r14935 r14948 180 180 grok.context(IApplicantsRoot) 181 181 grok.view(ApplicantsRootPage) 182 grok.require('waeup. managePortal')182 grok.require('waeup.createStudents') 183 183 icon = 'actionicon_entrance.png' 184 184 text = _('Create students') … … 193 193 grok.context(IApplicantsContainer) 194 194 grok.view(ApplicantsContainerPage) 195 grok.require('waeup. managePortal')195 grok.require('waeup.createStudents') 196 196 icon = 'actionicon_entrance.png' 197 197 text = _('Create students') … … 257 257 grok.order(4) 258 258 grok.context(IApplicant) 259 grok.require('waeup. manageApplication')259 grok.require('waeup.createStudents') 260 260 icon = 'actionicon_entrance.png' 261 261 text = _('Create student')
Note: See TracChangeset for help on using the changeset viewer.