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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 3 16:19:43 CET 2011


Author: aurel
Date: Thu Feb  3 16:19:42 2011
New Revision: 42994

URL: http://svn.erp5.org?rev=42994&view=rev
Log:
we do not want the same tag multiple times in the xml generated

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=42994&r1=42993&r2=42994&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLExportImport.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLExportImport.py [utf8] Thu Feb  3 16:19:42 2011
@@ -87,7 +87,7 @@ def Base_asXML(object, root=None):
                       portal_type=self.getPortalType()))
 
   # We have to find every property
-  for prop_id in self.propertyIds():
+  for prop_id in set(self.propertyIds()):
     # In most case, we should not synchronize acquired properties
     if prop_id not in ('uid', 'workflow_history', 'id', 'portal_type',):
       value = self.getProperty(prop_id)



More information about the Erp5-report mailing list