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,10 +205,10 @@ class XMLMatrix(Folder): ...@@ -205,10 +205,10 @@ class XMLMatrix(Folder):
if self.index.has_key(base_id): if self.index.has_key(base_id):
# Look at each dimension i of the previous index # Look at each dimension i of the previous index
for i in self.index[base_id].keys(): for i in self.index[base_id].keys():
temp = {}
# If the new index has the same dimensionality # If the new index has the same dimensionality
# Look at new location of cells # Look at new location of cells
if new_index.has_key(i): if new_index.has_key(i):
temp = {}
# Look at each index in a given dimension i # Look at each index in a given dimension i
for my_id in self.index[base_id][i].keys(): for my_id in self.index[base_id][i].keys():
new_place = new_index[i].get(my_id) new_place = new_index[i].get(my_id)
......
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