[Erp5-report] r30176 - /erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 30 17:53:49 CET 2009
Author: nicolas
Date: Fri Oct 30 17:53:48 2009
New Revision: 30176
URL: http://svn.erp5.org?rev=30176&view=rev
Log:
The comment was wrong, and the way to access value also
Modified:
erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py
Modified: erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py?rev=30176&r1=30175&r2=30176&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py [utf8] Fri Oct 30 17:53:48 2009
@@ -133,9 +133,8 @@
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)
More information about the Erp5-report
mailing list