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

index 87b4b43..5b5ea9f 100644 (file)
@@ -23,5 +23,8 @@ class GetAttributes(Method):
     def call(self, auth, attribute_id_or_name_list = None):
         # Get slice attribute information
         attributes = Attributes(self.api, attribute_id_or_name_list).values()
+       
+       # Turn each attribute into a real dict.
+       attributes = [dict(attribute.items()) for attribute in attributes]
 
         return attributes