Commit b02ba343 authored by Nicolas Dumazet's avatar Nicolas Dumazet

simplification


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32745 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fa521b2
...@@ -688,9 +688,10 @@ class XMLMatrix(Folder): ...@@ -688,9 +688,10 @@ class XMLMatrix(Folder):
del base_item[key] del base_item[key]
len_id = len(base_item) len_id = len(base_item)
if len(object_id_split) != (len_id + base_id_len): # +1 for the quantity current_dimension = len(object_id_split) - base_id_len
addError("Dimension of cell is %s but should be %s" % (len(object_id_split) if current_dimension != len_id: # +1 for the quantity
- base_id_len, len_id)) addError("Dimension of cell is %s but should be %s" % (current_dimension,
len_id))
to_delete_set.add(object_id) to_delete_set.add(object_id)
else : else :
for i in range(len_id): for i in range(len_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