Commit a9f6d8fa authored by Nicolas Delaby's avatar Nicolas Delaby

use faster xpath

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24105 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 154190b3
......@@ -206,8 +206,8 @@ class XMLSyncUtilsMixin(SyncCode):
This is used in order to confirm that an object was correctly
synchronized
"""
if remote_xml is not None :
msg_ref=remote_xml.xpath("string(//MsgID)").encode('utf-8')
if remote_xml is not None:
msg_ref=remote_xml.xpath("string(/SyncML/SyncHdr/MsgID)").encode('utf-8')
cmd_ref=remote_xml.xpath("string(.//CmdID)").encode('utf-8')
target_ref=remote_xml.xpath("string(.//Target/LocURI)").encode('utf-8')
source_ref=remote_xml.xpath("string(.//Source/LocURI)").encode('utf-8')
......
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