Ignore:
Timestamp:
10 Dec 2011, 06:15:17 (13 years ago)
Author:
Henrik Bettermann
Message:

Replace the term 'WAeUP' by SIRP which is a WAeUP product.

File:
1 edited

Legend:

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

    r7250 r7321  
    128128
    129129def get_waeup_roles(also_local=False):
    130     """Get all WAeUP roles.
    131 
    132     WAeUP roles are ordinary roles whose id by convention starts with
     130    """Get all SIRP roles.
     131
     132    SIRP roles are ordinary roles whose id by convention starts with
    133133    a ``waeup.`` prefix.
    134134
    135135    If `also_local` is ``True`` (``False`` by default), also local
    136     roles are returned. Local WAeUP roles are such whose id starts
     136    roles are returned. Local SIRP roles are such whose id starts
    137137    with ``waeup.local.`` prefix (this is also a convention).
    138138
     
    141141    for name, item in get_all_roles():
    142142        if not name.startswith('waeup.'):
    143             # Ignore non-WAeUP roles...
     143            # Ignore non-SIRP roles...
    144144            continue
    145145        if not also_local and name.startswith('waeup.local.'):
     
    149149
    150150def get_waeup_role_names():
    151     """Get the ids of all WAeUP roles.
    152 
    153     See :func:`get_waeup_roles` for what a 'WAeUPRole' is.
    154 
    155     This function returns a sorted list of WAeUP role names.
     151    """Get the ids of all SIRP roles.
     152
     153    See :func:`get_waeup_roles` for what a 'SIRPRole' is.
     154
     155    This function returns a sorted list of SIRP role names.
    156156    """
    157157    return sorted([x.id for x in get_waeup_roles()])
Note: See TracChangeset for help on using the changeset viewer.