[Erp5-report] r32745 nicolas.dumazet - /erp5/trunk/products/ERP5Type/XMLMatrix.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 18 11:07:28 CET 2010
Author: nicolas.dumazet
Date: Thu Feb 18 11:07:24 2010
New Revision: 32745
URL: http://svn.erp5.org?rev=32745&view=rev
Log:
simplification
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=32745&r1=32744&r2=32745&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Thu Feb 18 11:07:24 2010
@@ -688,9 +688,10 @@
del base_item[key]
len_id = len(base_item)
- if len(object_id_split) != (len_id + base_id_len): # +1 for the quantity
- addError("Dimension of cell is %s but should be %s" % (len(object_id_split)
- - base_id_len, len_id))
+ current_dimension = len(object_id_split) - base_id_len
+ if current_dimension != len_id: # +1 for the quantity
+ addError("Dimension of cell is %s but should be %s" % (current_dimension,
+ len_id))
to_delete_set.add(object_id)
else :
for i in range(len_id):
More information about the Erp5-report
mailing list