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
(from parent 1:
6d99783
)
added get_field()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 7 Mar 2012 19:10:04 +0000
(14:10 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 7 Mar 2012 19:10:04 +0000
(14:10 -0500)
sfa/storage/record.py
patch
|
blob
|
history
diff --git
a/sfa/storage/record.py
b/sfa/storage/record.py
index
5c5238e
..
fcde62c
100644
(file)
--- a/
sfa/storage/record.py
+++ b/
sfa/storage/record.py
@@
-14,6
+14,10
@@
class Record:
xml_dict = xml_record.todict()
self.load_from_dict(xml_dict)
+
+ def get_field(self, field):
+ return self.__dict__.get(field, None)
+
# xxx fixme
# turns out the date_created field is received by the client as a 'created' int
# (and 'last_updated' does not make it at all)