From: Tony Mack <tmack@cs.princeton.edu>
Date: Thu, 12 Feb 2009 19:11:42 +0000 (+0000)
Subject: renamed get to getdict, added some return info in getdict
X-Git-Tag: sfa-0.9-0@14641~635
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6597d2f6f1fec7a912ecab0ee89862f8a7c14af1;p=sfa.git

renamed get to getdict, added some return info in getdict
---

diff --git a/geni/util/record.py b/geni/util/record.py
index 56aafae0..cb3c2937 100644
--- a/geni/util/record.py
+++ b/geni/util/record.py
@@ -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