Ignore:
Timestamp:
8 Mar 2012, 22:28:46 (13 years ago)
Author:
Henrik Bettermann
Message:

KOFA -> Kofa

File:
1 edited

Legend:

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

    r7811 r7819  
    168168
    169169def get_waeup_roles(also_local=False):
    170     """Get all KOFA roles.
    171 
    172     KOFA roles are ordinary roles whose id by convention starts with
     170    """Get all Kofa roles.
     171
     172    Kofa roles are ordinary roles whose id by convention starts with
    173173    a ``waeup.`` prefix.
    174174
    175175    If `also_local` is ``True`` (``False`` by default), also local
    176     roles are returned. Local KOFA roles are such whose id starts
     176    roles are returned. Local Kofa roles are such whose id starts
    177177    with ``waeup.local.`` prefix (this is also a convention).
    178178
     
    181181    for name, item in get_all_roles():
    182182        if not name.startswith('waeup.'):
    183             # Ignore non-KOFA roles...
     183            # Ignore non-Kofa roles...
    184184            continue
    185185        if not also_local and name.startswith('waeup.local.'):
     
    189189
    190190def get_waeup_role_names():
    191     """Get the ids of all KOFA roles.
    192 
    193     See :func:`get_waeup_roles` for what a 'KOFARole' is.
    194 
    195     This function returns a sorted list of KOFA role names.
     191    """Get the ids of all Kofa roles.
     192
     193    See :func:`get_waeup_roles` for what a 'KofaRole' is.
     194
     195    This function returns a sorted list of Kofa role names.
    196196    """
    197197    return sorted([x.id for x in get_waeup_roles()])
Note: See TracChangeset for help on using the changeset viewer.