Commit d79934cb authored by Nicolas Delaby's avatar Nicolas Delaby

The comment was wrong, and the way to access value also

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30176 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a508d9c0
......@@ -133,9 +133,8 @@ class ERP5DocumentConduit(ERP5Conduit):
attrib_dict[sub_element.attrib.get('name')] = sub_element.text
block = etree.SubElement(xml, name_element)
block.attrib.update(attrib_dict)
#change structure in xupdate because is bad formed
value = etree.tostring(element).split('</')[1].split('>')[1]
block.text = value
if len(element):
block.text = element[-1].tail
data_change[prop_id] = xml
xml_xupdate.remove(subnode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment