fix for {"text":} dictionaries in record fields
[sfa.git] / sfa / util / record.py
index 54c3f9f..424f419 100644 (file)
@@ -279,6 +279,7 @@ class SfaRecord(Row):
         """
         Load the record from a dictionary 
         """
+
         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]
-        
+
         record = XML(str)
-        self.load_from_dict(record.todict())
+        self.load_from_dict(record.todict2())
 
     ##
     # Dump the record to stdout