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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 18 11:10:09 CET 2010


Author: nicolas.dumazet
Date: Thu Feb 18 11:10:07 2010
New Revision: 32746

URL: http://svn.erp5.org?rev=32746&view=rev
Log:
correct syntax/variable names after cleanups

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=32746&r1=32745&r2=32746&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Thu Feb 18 11:10:07 2010
@@ -632,7 +632,7 @@
       # Check useless cells
       to_delete_set = set()
       error_list = []
-      def addError(message):
+      def addError(error_message):
         if fixit:
           error_message += ' (fixed)'
         error = (self.getRelativeUrl(),
@@ -679,9 +679,9 @@
               # Check empty indices.
               empty_list = []
               base_item = self.index[base_id]
-              for key, value in base_item.iteritems()
+              for key, value in base_item.iteritems():
                 if value is None or len(value) == 0:
-                  addError("There is no id for the %dth axis of base_id %s" % (i, base_id))
+                  addError("There is no id for the %dth axis of base_id %s" % (key, base_id))
                   empty_list.append(key)
               if fixit:
                 for i in empty_list:




More information about the Erp5-report mailing list