Commit 740b636f authored by Vincent Pelletier's avatar Vincent Pelletier

Move test which is invariant at this level one level higher.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18540 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8d1432c6
......@@ -213,11 +213,11 @@ class XMLMatrix(Folder):
# 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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment