Ignore:
Timestamp:
8 Mar 2012, 19:00:51 (13 years ago)
Author:
uli
Message:

Rename all non-locales stuff from sirp to kofa.

File:
1 edited

Legend:

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

    r7334 r7811  
    1 SIRP permissions and roles
     1KOFA permissions and roles
    22**************************
    33
    4 Permissions and roles used in a SIRP portal.
     4Permissions and roles used in a KOFA portal.
    55
    66.. :doctest:
    7 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer
     7.. :layer: waeup.kofa.testing.KOFAUnitTestLayer
    88
    99Convenience functions
    1010=====================
    1111
    12 :mod:`waeup.sirp` offers some convenience functions to handle security
     12:mod:`waeup.kofa` offers some convenience functions to handle security
    1313roles.
    1414
     
    1616---------------------
    1717
    18 Gives us all roles defined in SIRP. We get tuples of
     18Gives us all roles defined in KOFA. We get tuples of
    1919kind
    2020
     
    2424with the ZCA (a string) and ``<ROLE>`` is the real role object.
    2525
    26     >>> from waeup.sirp.permissions import get_all_roles
     26    >>> from waeup.kofa.permissions import get_all_roles
    2727    >>> get_all_roles()
    2828    <generator object...at 0x...>
    2929
    3030    >>> sorted(list(get_all_roles()))
    31     [(u'waeup.ACManager', <waeup.sirp.permissions.ACManager object at 0x...]
     31    [(u'waeup.ACManager', <waeup.kofa.permissions.ACManager object at 0x...]
    3232
    3333:func:`get_waeup_roles`
    3434-----------------------
    3535
    36 Gives us all roles, except the SIRP specific roles. We can get a list
     36Gives us all roles, except the KOFA specific roles. We can get a list
    3737with or without local roles:
    3838
    39     >>> from waeup.sirp.permissions import get_waeup_roles
     39    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    4141    11
     
    4848----------------------------
    4949
    50 We can get all role names defined in SIRP (except 'local'
     50We can get all role names defined in KOFA (except 'local'
    5151roles that are meant not to be assigned globally):
    5252
    53     >>> from waeup.sirp.permissions import get_waeup_role_names
     53    >>> from waeup.kofa.permissions import get_waeup_role_names
    5454    >>> list(get_waeup_role_names())
    5555    [u'waeup.ACManager',
     
    7272they are not stored in the ZODB:
    7373
    74     >>> from waeup.sirp.permissions import get_users_with_local_roles
     74    >>> from waeup.kofa.permissions import get_users_with_local_roles
    7575    >>> mycontext = object()
    7676    >>> people_and_roles = get_users_with_local_roles(mycontext)
Note: See TracChangeset for help on using the changeset viewer.