Changeset 6660
- Timestamp:
- 2 Sep 2011, 15:55:06 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/permissions.txt
r6655 r6660 42 42 43 43 >>> len(list(getWAeUPRoles(also_local=True))) 44 844 9 45 45 46 46 -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r6654 r6660 76 76 grok.context(IWAeUPObject) 77 77 grok.order(3) 78 grok.require('waeup.viewStudent s')78 grok.require('waeup.viewStudent') 79 79 grok.template('primarynavtab') 80 80 … … 115 115 grok.context(IStudentsContainer) 116 116 grok.name('index') 117 grok.require('waeup.viewStudent s')117 grok.require('waeup.viewStudent') 118 118 grok.template('studentscontainerpage') 119 119 label = 'Student Section' … … 231 231 grok.context(IStudent) 232 232 grok.name('index') 233 grok.require('waeup.viewStudent s')233 grok.require('waeup.viewStudent') 234 234 grok.template('studentpage') 235 235 form_fields = grok.AutoFields(IStudentBase) … … 299 299 grok.context(IStudent) 300 300 grok.name('view_clearance') 301 grok.require('waeup.viewStudent s')301 grok.require('waeup.viewStudent') 302 302 form_fields = grok.AutoFields(IStudentClearance) 303 303 form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le') … … 339 339 grok.context(IStudent) 340 340 grok.name('view_personal') 341 grok.require('waeup.viewStudent s')341 grok.require('waeup.viewStudent') 342 342 form_fields = grok.AutoFields(IStudentPersonal) 343 343 title = 'Personal Data' … … 361 361 grok.context(IStudent) 362 362 grok.name('edit_personal') 363 grok.require('waeup.viewStudent s')363 grok.require('waeup.viewStudent') 364 364 form_fields = grok.AutoFields(IStudentPersonal) 365 365 label = 'Edit personal data' … … 372 372 grok.context(IStudentStudyCourse) 373 373 grok.name('index') 374 grok.require('waeup.viewStudent s')374 grok.require('waeup.viewStudent') 375 375 form_fields = grok.AutoFields(IStudentStudyCourse) 376 376 #grok.template('studycoursepage') … … 407 407 grok.context(IStudentPayments) 408 408 grok.name('index') 409 grok.require('waeup.viewStudent s')409 grok.require('waeup.viewStudent') 410 410 form_fields = grok.AutoFields(IStudentPayments) 411 411 #grok.template('paymentspage') … … 422 422 grok.context(IStudentAccommodation) 423 423 grok.name('index') 424 grok.require('waeup.viewStudent s')424 grok.require('waeup.viewStudent') 425 425 form_fields = grok.AutoFields(IStudentAccommodation) 426 426 #grok.template('accommodationpage') … … 437 437 grok.context(IStudent) 438 438 grok.name('history') 439 grok.require('waeup.viewStudent s')439 grok.require('waeup.viewStudent') 440 440 grok.template('studenthistory') 441 441 title = 'History' -
main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py
r6655 r6660 21 21 # Student section permissions 22 22 23 class ViewStudents(grok.Permission): 24 grok.name('waeup.viewStudents') 23 class HandleStudent(grok.Permission): 24 grok.name('waeup.handleStudent') 25 26 class ViewStudent(grok.Permission): 27 grok.name('waeup.viewStudent') 25 28 26 29 class ManageStudents(grok.Permission): 27 30 grok.name('waeup.manageStudents') 31 32 # Local role 33 class StudentRecordOwner(grok.Role): 34 grok.name('waeup.local.StudentRecordOwner') 35 grok.title(u'Student Record Owner') 36 grok.permissions('waeup.handleStudent', 'waeup.viewStudent') 28 37 29 38 # Global Roles … … 32 41 grok.title(u'Students Officer') 33 42 grok.permissions('waeup.View', 'waeup.Public', 34 'waeup.viewStudent s', 'waeup.manageStudents')43 'waeup.viewStudent', 'waeup.manageStudents') -
main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py
r6642 r6660 9 9 10 10 class StudentLink(grok.Viewlet): 11 """A link displayed in the student box which shows for StudentNavigation11 """A link displayed in the student box which shows up for StudentNavigation 12 12 objects. 13 13 … … 18 18 grok.view(Interface) 19 19 grok.order(5) 20 grok.require('waeup.viewStudent s')20 grok.require('waeup.viewStudent') 21 21 22 22 link = 'index'
Note: See TracChangeset for help on using the changeset viewer.