[Erp5-report] r30133 - /erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 29 18:05:22 CET 2009
Author: nicolas
Date: Thu Oct 29 18:05:21 2009
New Revision: 30133
URL: http://svn.erp5.org?rev=30133&view=rev
Log:
Reuse xpath result
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=30133&r1=30132&r2=30133&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/ERP5DocumentConduit.py [utf8] Thu Oct 29 18:05:21 2009
@@ -100,7 +100,7 @@
if subnode.xpath('name()') in self.XUPDATE_DEL:
node_to_remove_list = xml.xpath(request)
if node_to_remove_list:
- xml.remove(xml.xpath(request)[0])
+ xml.remove(node_to_remove_list[0])
data_change[prop_id] = xml
xml_xupdate.remove(subnode)
elif subnode.xpath('name()') in self.XUPDATE_UPDATE:
More information about the Erp5-report
mailing list