- turn each role into a real dict before returning
authorTony Mack <tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:33:06 +0000 (19:33 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:33:06 +0000 (19:33 +0000)
PLC/Methods/GetRoles.py

index 1a2c196..6826476 100644 (file)
@@ -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