Ignore:
Timestamp:
22 Sep 2013, 08:54:03 (11 years ago)
Author:
Henrik Bettermann
Message:

Define new local roles (see uniben ticket 900).

Allow the dynamical assignment of multiple local roles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/dynamicroles.py

    r9565 r10639  
    4444    rolename_mapping = {
    4545        'waeup.local.ClearanceOfficer':'waeup.StudentsClearanceOfficer',
     46        'waeup.local.LocalStudentsManager': 'waeup.StudentsManager',
     47        'waeup.local.LocalWorkflowManager': 'waeup.WorkflowManager',
    4648        }
    4749
     
    109111                    result.append(
    110112                        (self.rolename_mapping[role_id], setting))
    111                     return result
     113                    # Local roles have been found, no need to climb up further.
     114                    obj = None
    112115            obj = getattr(obj, '__parent__', None)
    113116        return result
Note: See TracChangeset for help on using the changeset viewer.