Changeset 7154 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 20 Nov 2011, 11:35:38 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/permissions.txt
r6960 r7154 39 39 >>> from waeup.sirp.permissions import getWAeUPRoles 40 40 >>> len(list(getWAeUPRoles())) 41 641 8 42 42 43 43 >>> len(list(getWAeUPRoles(also_local=True))) 44 1 144 13 45 45 46 46 … … 53 53 >>> from waeup.sirp.permissions import getWAeUPRoleNames 54 54 >>> list(getWAeUPRoleNames()) 55 [u'waeup.AccommodationOfficer', u'waeup.ApplicationsOfficer', u'waeup.PortalManager', 56 u'waeup.PortalUser', u'waeup.Student', u'waeup.StudentsOfficer'] 55 [u'waeup.AccommodationOfficer', u'waeup.ApplicationsOfficer', 56 u'waeup.PortalManager', u'waeup.PortalUser', u'waeup.Student', 57 u'waeup.StudentsClearanceOfficer', u'waeup.StudentsManager', 58 u'waeup.StudentsOfficer'] 57 59 58 60 :func:`get_users_with_local_roles` -
main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py
r7136 r7154 53 53 class StudentsOfficer(grok.Role): 54 54 grok.name('waeup.StudentsOfficer') 55 grok.title(u'Students Officer') 55 grok.title(u'Students Officer (view only)') 56 grok.permissions('waeup.View', 'waeup.Public', 57 'waeup.viewStudent',) 58 59 class StudentsManager(grok.Role): 60 grok.name('waeup.StudentsManager') 61 grok.title(u'Students Manager') 56 62 grok.permissions('waeup.View', 'waeup.Public', 57 63 'waeup.viewStudent', 'waeup.manageStudent', 58 64 'waeup.payStudent', 'waeup.uploadStudentFile') 65 66 class StudentsClearanceOfficer(grok.Role): 67 grok.name('waeup.StudentsClearanceOfficer') 68 grok.title(u'Clearance Officer (all students)') 69 grok.permissions('waeup.View', 'waeup.Public', 'waeup.clearStudent')
Note: See TracChangeset for help on using the changeset viewer.