[Erp5-report] r18540 - /erp5/trunk/products/ERP5Type/XMLMatrix.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 28 15:09:10 CET 2007


Author: vincent
Date: Fri Dec 28 15:09:10 2007
New Revision: 18540

URL: http://svn.erp5.org?rev=18540&view=rev
Log:
Move test which is invariant at this level one level higher.

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

Modified: erp5/trunk/products/ERP5Type/XMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLMatrix.py?rev=18540&r1=18539&r2=18540&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py Fri Dec 28 15:09:10 2007
@@ -213,11 +213,11 @@
       # Look at each dimension i of the previous index
       for i in self.index[base_id].keys():
         movement[base_id][i]={}
-        # Look at each index in a given dimension i
-        for my_id in self.index[base_id][i].keys():
-          # If the new index has the same dimensionality
-          # Look at new location of cells
-          if new_index[base_id].has_key(i):
+        # If the new index has the same dimensionality
+        # Look at new location of cells
+        if new_index[base_id].has_key(i):
+          # Look at each index in a given dimension i
+          for my_id in self.index[base_id][i].keys():
             new_place=None
             old_place = self.index[base_id][i][my_id]
             if my_id in new_index[base_id][i].keys():




More information about the Erp5-report mailing list