- Timestamp:
- 13 Nov 2014, 14:40:27 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/permissions.py
r11947 r11949 20 20 from zope.interface import Interface 21 21 from zope.securitypolicy.interfaces import IRole, IPrincipalRoleMap 22 from waeup. kofa.interfaces import ILocalRolesAssignable22 from waeup.ikoba.interfaces import ILocalRolesAssignable 23 23 24 24 class Public(grok.Permission): … … 185 185 186 186 def get_waeup_roles(also_local=False): 187 """Get all Kofa roles.188 189 Kofa roles are ordinary roles whose id by convention starts with187 """Get all Ikoba roles. 188 189 Ikoba roles are ordinary roles whose id by convention starts with 190 190 a ``waeup.`` prefix. 191 191 192 192 If `also_local` is ``True`` (``False`` by default), also local 193 roles are returned. Local Kofa roles are such whose id starts193 roles are returned. Local Ikoba roles are such whose id starts 194 194 with ``waeup.local.`` prefix (this is also a convention). 195 195 … … 198 198 for name, item in get_all_roles(): 199 199 if not name.startswith('waeup.'): 200 # Ignore non- Kofa roles...200 # Ignore non-Ikoba roles... 201 201 continue 202 202 if not also_local and name.startswith('waeup.local.'): … … 206 206 207 207 def get_waeup_role_names(): 208 """Get the ids of all Kofa roles.209 210 See :func:`get_waeup_roles` for what a ' KofaRole' is.211 212 This function returns a sorted list of Kofa role names.208 """Get the ids of all Ikoba roles. 209 210 See :func:`get_waeup_roles` for what a 'IkobaRole' is. 211 212 This function returns a sorted list of Ikoba role names. 213 213 """ 214 214 return sorted([x.id for x in get_waeup_roles()])
Note: See TracChangeset for help on using the changeset viewer.