Ignore:
Timestamp:
26 Nov 2011, 22:19:41 (13 years ago)
Author:
Henrik Bettermann
Message:

Use rolename_mapping dictionary instead of external_rolenames and additional_rolename.

File:
1 edited

Legend:

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

    r7192 r7220  
    4343    subcontainer = None
    4444
    45     #: List of role names to look for in `extra_attrib` and parents.
    46     external_rolenames = ['waeup.local.ClearanceOfficer',]
    47 
    48     #: Role to add in case one of the above roles was found.
    49     additional_rolename = 'waeup.ApplicationsOfficer'
     45    # Role name mapping:
     46    # role name to look for in `extra_attrib` and parents
     47    # to
     48    # role to add in case this role was found
     49    rolename_mapping = {
     50        'waeup.local.ClearanceOfficer':'waeup.ApplicationsOfficer',
     51        }
Note: See TracChangeset for help on using the changeset viewer.