git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7263fd8
)
- turn each role into a real dict before returning
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:33:06 +0000
(19:33 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:33:06 +0000
(19:33 +0000)
PLC/Methods/GetRoles.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetRoles.py
b/PLC/Methods/GetRoles.py
index
1a2c196
..
6826476
100644
(file)
--- a/
PLC/Methods/GetRoles.py
+++ b/
PLC/Methods/GetRoles.py
@@
-18,4
+18,10
@@
class GetRoles(Method):
returns = [Role.fields]
def call(self, auth):
- return Roles(self.api).values()
+
+ roles = Roles(self.api).values()
+
+ #turn each role into a real dict
+ roles = [dict(role.items()) for role in roles]
+
+ return roles