Ignore:
Timestamp:
18 May 2011, 13:47:05 (13 years ago)
Author:
Henrik Bettermann
Message:
  • Add Faculty class attribute local_roles which is a list of local role dictionaries. These are local roles allowed in the Faculty context.
Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.py

    r6045 r6125  
    2727class ManageUsers(grok.Permission):
    2828    grok.name('waeup.manageUsers')
     29
     30# Local Roles
     31class DepartmentOfficer(grok.Role):
     32    grok.name('waeup.local.DepartmentManager')
     33    grok.permissions('waeup.manageUniversity')
    2934   
    30 class FacultyRead(grok.Permission):
    31     grok.name('waeup.facultyread')
    32 
    33 # Roles
     35# Global Roles
    3436class PortalUser(grok.Role):
    3537    grok.name('waeup.PortalUser')
    36     grok.permissions('waeup.facultyread', 'waeup.View', 'waeup.Public')
     38    grok.permissions('waeup.View', 'waeup.Public')
    3739
    3840class PortalManager(grok.Role):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py

    r5994 r6125  
    88    IFaculty, IFacultyAdd, IDepartment)
    99from waeup.sirp.university.vocabularies import inst_types   
     10
     11local_roles = [
     12    {'name':'waeup.local.DepartmentOfficer','title':'Department Officer'},
     13    ]
    1014
    1115class Faculty(grok.Container):
Note: See TracChangeset for help on using the changeset viewer.