git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a09357
)
renamed get to getdict, added some return info in getdict
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 12 Feb 2009 19:11:42 +0000
(19:11 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 12 Feb 2009 19:11:42 +0000
(19:11 +0000)
geni/util/record.py
patch
|
blob
|
history
diff --git
a/geni/util/record.py
b/geni/util/record.py
index
56aafae
..
cb3c293
100644
(file)
--- 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 get
dict
(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