"""
Load the record from a dictionary
"""
+
self.set_name(dict['hrn'])
gidstr = dict.get("gid", None)
if gidstr:
recorddict = self.as_dict()
filteredDict = dict([(key, val) for (key, val) in recorddict.iteritems() if key in self.fields.keys()])
record = XML('<record/>')
- record.root.attrib.update(filteredDict)
+ record.parse_dict(filteredDict)
str = record.toxml()
return str
representation of the record.
"""
#dict = xmlrpclib.loads(str)[0][0]
-
+
record = XML(str)
self.load_from_dict(record.todict())