students.dynamicroles - Dynamic Roles Components

Security policy components for students.

Students need special security policy treatment, as officers with local roles for departments and faculties might have additional permissions (local roles on depts/faculties) here.

class waeup.kofa.students.dynamicroles.StudentPrincipalRoleManager(context)[source]

Bases: zope.securitypolicy.principalrole.AnnotationPrincipalRoleManager, grokcore.component.components.Adapter

__doc__ = None
__module__ = 'waeup.kofa.students.dynamicroles'
extra_attrib = 'certificate'

The attribute name to lookup for additional roles

getRolesForPrincipal(principal_id)[source]

Get roles for principal with id principal_id.

See waeup.kofa.applicants.dynamicroles.ApplicantPrincipalRoleManager for further information.

rolename_mapping = {'waeup.local.ClearanceOfficer': 'waeup.StudentsClearanceOfficer', 'waeup.local.LocalWorkflowManager': 'waeup.WorkflowManager', 'waeup.local.LocalStudentsManager': 'waeup.StudentsManager'}
subcontainer = 'studycourse'