renamed get to getdict, added some return info in getdict
authorTony Mack <tmack@cs.princeton.edu>
Thu, 12 Feb 2009 19:11:42 +0000 (19:11 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 12 Feb 2009 19:11:42 +0000 (19:11 +0000)
geni/util/record.py

index 56aafae..cb3c293 100644 (file)
@@ -284,8 +284,8 @@ class GeniRecord():
                 print "       ", key, ":", pl_info[key]
 
 
-    def get(self):
-        info = {}
+    def getdict(self):
+        info = {'hrn': self.name, 'type': self.type, 'gid': self.gid}
         info.update(getattr(self, "geni_info", {}))
         info.update(getattr(self, "pl_info", {}))
         return info