Changeset 6160 for main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
- Timestamp:
- 20 May 2011, 09:38:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
r6159 r6160 130 130 to assign each role to). 131 131 """ 132 return self._roles 132 list_of_dict = [dict(name=x, title=self._roles[x]) for x in self._roles.keys()] 133 return list_of_dict 133 134 134 135 def roles(self): 135 136 """Return a list of roles assignable to the context object. 136 137 """ 137 return [x['name'] for x in self._roles]138 return self._roles.keys()
Note: See TracChangeset for help on using the changeset viewer.