[Erp5-report] r34399 aurel - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 8 16:57:52 CEST 2010


Author: aurel
Date: Thu Apr  8 16:57:51 2010
New Revision: 34399

URL: http://svn.erp5.org?rev=34399&view=rev
Log:
sort list before comparing them, this will avoid getting 'fake' diff
when installing a business template

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=34399&r1=34398&r2=34399&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Apr  8 16:57:51 2010
@@ -2092,6 +2092,8 @@
           # compare object to see it there is changes
           new_object = self._objects[path]
           old_object = installed_item._objects[path]
+          new_object.sort()
+          old_object.sort()
           if new_object != old_object:
             modified_object_list.update({path : ['Modified', self.getTemplateTypeName()]})
         else: # new object




More information about the Erp5-report mailing list