[Erp5-report] r32816 nicolas.dumazet - /erp5/trunk/products/ERP5Type/XMLMatrix.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 19 03:51:55 CET 2010


Author: nicolas.dumazet
Date: Fri Feb 19 03:51:52 2010
New Revision: 32816

URL: http://svn.erp5.org?rev=32816&view=rev
Log:
if one coordinate is out of bounds, the whole cell is out of bounds

* No need to examine further following coordinates
* No need to duplicate the same error message
* No need to no-op using set.add(alread_added_item)

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=32816&r1=32815&r2=32816&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Fri Feb 19 03:51:52 2010
@@ -681,6 +681,7 @@
                   if coordinate >= len(base_item[i]):
                     addError("Cell %s is out of bound" % object_id)
                     to_delete_set.add(object_id)
+                    break
 
       if fixit and len(to_delete_set) > 0:
         self.manage_delObjects(list(to_delete_set))




More information about the Erp5-report mailing list