[Erp5-report] r24105 - /erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 8 17:57:45 CEST 2008


Author: nicolas
Date: Wed Oct  8 17:57:41 2008
New Revision: 24105

URL: http://svn.erp5.org?rev=24105&view=rev
Log:
use faster xpath

Modified:
    erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py

Modified: erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py?rev=24105&r1=24104&r2=24105&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py (original)
+++ erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py Wed Oct  8 17:57:41 2008
@@ -206,8 +206,8 @@
     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')




More information about the Erp5-report mailing list