Commit d0732f1a authored by Nicolas Delaby's avatar Nicolas Delaby

Reuse xpath result

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71f04943
......@@ -100,7 +100,7 @@ class ERP5DocumentConduit(ERP5Conduit):
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:
......
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