git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for {"text":} dictionaries in record fields
[sfa.git]
/
sfa
/
util
/
record.py
diff --git
a/sfa/util/record.py
b/sfa/util/record.py
index
54c3f9f
..
424f419
100644
(file)
--- a/
sfa/util/record.py
+++ b/
sfa/util/record.py
@@
-279,6
+279,7
@@
class SfaRecord(Row):
"""
Load the record from a dictionary
"""
"""
Load the record from a dictionary
"""
+
self.set_name(dict['hrn'])
gidstr = dict.get("gid", None)
if gidstr:
self.set_name(dict['hrn'])
gidstr = dict.get("gid", None)
if gidstr:
@@
-316,9
+317,9
@@
class SfaRecord(Row):
representation of the record.
"""
#dict = xmlrpclib.loads(str)[0][0]
representation of the record.
"""
#dict = xmlrpclib.loads(str)[0][0]
-
+
record = XML(str)
record = XML(str)
- self.load_from_dict(record.todict())
+ self.load_from_dict(record.todict
2
())
##
# Dump the record to stdout
##
# Dump the record to stdout