[Erp5-report] r29929 - /erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 22 15:29:18 CEST 2009


Author: nicolas
Date: Thu Oct 22 15:29:17 2009
New Revision: 29929

URL: http://svn.erp5.org?rev=29929&view=rev
Log:
Avoid duplicate properties in asXML. id and portal_type are already xml attributes

Modified:
    erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py

Modified: erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py?rev=29929&r1=29928&r2=29929&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py [utf8] Thu Oct 22 15:29:17 2009
@@ -657,10 +657,7 @@
         object_element = xml_copy
       else:
         object_element = xml_copy.xpath('//object')[0]
-      #XXXElement id will be removed from asXML
-      id_element = object_element.xpath('./id')[0]
       object_element.attrib['id'] = new_id
-      id_element.text = new_id
       return etree.tostring(xml_copy)
 
   def getXMLFromObjectWithId(self, object, xml_mapping):




More information about the Erp5-report mailing list