Commit 295d27c0 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not put any entry in movement dict when there is no movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18546 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43e118b7
......@@ -205,17 +205,17 @@ class XMLMatrix(Folder):
if self.index.has_key(base_id):
# Look at each dimension i of the previous index
for i in self.index[base_id].keys():
temp = {}
# If the new index has the same dimensionality
# Look at new location of cells
if new_index.has_key(i):
temp = {}
# Look at each index in a given dimension i
for my_id in self.index[base_id][i].keys():
new_place = new_index[i].get(my_id)
old_place = self.index[base_id][i][my_id]
# create a movement in dimension i between old_place and new_place
temp[old_place] = new_place
movement[i] = temp
movement[i] = temp
# Rename every 'object_id' by 'temp_object_id'
object_id_list = []
......
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