Changeset 7168
- Timestamp:
- 22 Nov 2011, 14:11:25 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
r7163 r7168 44 44 grok.name('waeup.local.DepartmentOfficer') 45 45 grok.title(u'Department Officer') 46 grok.permissions('waeup.manageUniversity','waeup.View', 'waeup.Public') 46 grok.permissions('waeup.manageUniversity') 47 47 48 48 49 class ClearanceOfficer(grok.Role): 50 """The clearance officer role is meant for the 51 assignment of dynamic roles only. 52 """ 49 53 grok.name('waeup.local.ClearanceOfficer') 50 54 grok.title(u'Clearance Officer') 51 grok.permissions('waeup.View', 'waeup.Public')52 55 53 56 class CourseAdviser(grok.Role): 57 """The course adviser role is meant for the 58 assignment of dynamic roles only. 59 """ 54 60 grok.name('waeup.local.CourseAdviser') 55 61 grok.title(u'Course Adviser') 56 grok.permissions('waeup.View', 'waeup.Public')57 62 58 63 class Owner(grok.Role): -
main/waeup.sirp/trunk/src/waeup/sirp/permissions.txt
r7163 r7168 39 39 >>> from waeup.sirp.permissions import getWAeUPRoles 40 40 >>> len(list(getWAeUPRoles())) 41 841 9 42 42 43 43 >>> len(list(getWAeUPRoles(also_local=True))) 44 1 444 15 45 45 46 46 … … 53 53 >>> from waeup.sirp.permissions import getWAeUPRoleNames 54 54 >>> list(getWAeUPRoleNames()) 55 [u'waeup.AccommodationOfficer', u'waeup.ApplicationsOfficer', 55 [u'waeup.AccommodationOfficer', u'waeup.Applicant', 56 u'waeup.ApplicationsOfficer', 56 57 u'waeup.PortalManager', u'waeup.PortalUser', u'waeup.Student', 57 58 u'waeup.StudentsClearanceOfficer', u'waeup.StudentsManager', -
main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py
r7154 r7168 54 54 grok.name('waeup.StudentsOfficer') 55 55 grok.title(u'Students Officer (view only)') 56 grok.permissions('waeup.View', 'waeup.Public', 57 'waeup.viewStudent',) 56 grok.permissions('waeup.viewStudent',) 58 57 59 58 class StudentsManager(grok.Role): 60 59 grok.name('waeup.StudentsManager') 61 60 grok.title(u'Students Manager') 62 grok.permissions('waeup.View', 'waeup.Public', 63 'waeup.viewStudent', 'waeup.manageStudent', 61 grok.permissions('waeup.viewStudent', 'waeup.manageStudent', 64 62 'waeup.payStudent', 'waeup.uploadStudentFile') 65 63 … … 67 65 grok.name('waeup.StudentsClearanceOfficer') 68 66 grok.title(u'Clearance Officer (all students)') 69 grok.permissions('waeup. View', 'waeup.Public', 'waeup.clearStudent')67 grok.permissions('waeup.clearStudent')
Note: See TracChangeset for help on using the changeset viewer.