[Erp5-report] r29928 - /erp5/trunk/products/ERP5Type/XMLExportImport.py

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


Author: nicolas
Date: Thu Oct 22 15:28:57 2009
New Revision: 29928

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

Modified:
    erp5/trunk/products/ERP5Type/XMLExportImport.py

Modified: erp5/trunk/products/ERP5Type/XMLExportImport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLExportImport.py?rev=29928&r1=29927&r2=29928&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLExportImport.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLExportImport.py [utf8] Thu Oct 22 15:28:57 2009
@@ -83,7 +83,7 @@
   # We have to find every property
   for prop_id in self.propertyIds():
     # In most case, we should not synchronize acquired properties
-    if prop_id not in ('uid', 'workflow_history'):
+    if prop_id not in ('uid', 'workflow_history', 'id', 'portal_type',):
       value = self.getProperty(prop_id)
       if value is None:
         prop_type = 'None'




More information about the Erp5-report mailing list