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

index 93511b2..266d45f 100644 (file)
@@ -31,4 +31,9 @@ class GetPCUs(Method):
                 for site in sites:
                     pcu_ids = set(pcu_ids).union(site['pcu_ids'])
 
-        return PCUs(self.api, pcu_ids).values()
+        pcus = PCUs(self.api, pcu_ids).values()
+
+       # turn each pcu into a real dict
+       pcus = [dict(pcu.items()) for pcu in pcus]
+
+       return PCUs(self.api, pcu_ids).values()