- Timestamp:
- 30 Aug 2011, 05:43:06 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/exceptions.py
r6201 r6655 78 78 def update(self): 79 79 try: 80 self.context = self.context .getObject()80 self.context = self.context = grok.getSite() 81 81 except: 82 82 pass -
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
r6622 r6655 37 37 grok.name('waeup.managePortalSettings') 38 38 39 class ViewStudents(grok.Permission):40 grok.name('waeup.viewStudents')41 42 class ManageStudents(grok.Permission):43 grok.name('waeup.manageStudents')44 45 39 # Local Roles 46 40 class DepartmentOfficer(grok.Role): … … 48 42 grok.title(u'Department Officer') 49 43 grok.permissions('waeup.manageUniversity','waeup.View', 'waeup.Public') 44 45 class ClearanceOfficer(grok.Role): 46 grok.name('waeup.local.ClearanceOfficer') 47 grok.title(u'Clearance Officer') 48 # to be further defined 49 grok.permissions('waeup.View', 'waeup.Public') 50 51 class CourseAdviser(grok.Role): 52 grok.name('waeup.local.CourseAdviser') 53 grok.title(u'Course Adviser') 54 # to be further defined 55 grok.permissions('waeup.View', 'waeup.Public') 50 56 51 57 # Global Roles -
main/waeup.sirp/trunk/src/waeup/sirp/permissions.txt
r6333 r6655 39 39 >>> from waeup.sirp.permissions import getWAeUPRoles 40 40 >>> len(list(getWAeUPRoles())) 41 341 4 42 42 43 43 >>> len(list(getWAeUPRoles(also_local=True))) 44 544 8 45 45 46 46 … … 53 53 >>> from waeup.sirp.permissions import getWAeUPRoleNames 54 54 >>> list(getWAeUPRoleNames()) 55 [u'waeup.ApplicationsOfficer', u'waeup.PortalManager', u'waeup.PortalUser' ]55 [u'waeup.ApplicationsOfficer', u'waeup.PortalManager', u'waeup.PortalUser', u'waeup.StudentsOfficer'] 56 56 57 57 :func:`get_users_with_local_roles` -
main/waeup.sirp/trunk/src/waeup/sirp/university/department.py
r6162 r6655 15 15 @property # Make this method read_only and looking like an attr. 16 16 def local_roles(cls): 17 return ['waeup.local.DepartmentOfficer' ]17 return ['waeup.local.DepartmentOfficer', 'waeup.local.ClearanceOfficer'] 18 18 19 19 # A simple counter for ids. -
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py
r6162 r6655 16 16 @property # Make this method read_only and looking like an attr. 17 17 def local_roles(cls): 18 return ['waeup.local.DepartmentOfficer' ]18 return ['waeup.local.DepartmentOfficer', 'waeup.local.ClearanceOfficer'] 19 19 20 20 def __init__(self,
Note: See TracChangeset for help on using the changeset viewer.