Commit adadb375 authored by Nicolas Dumazet's avatar Nicolas Dumazet

correct syntax/variable names after cleanups


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b02ba343
......@@ -632,7 +632,7 @@ class XMLMatrix(Folder):
# 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 @@ class XMLMatrix(Folder):
# 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:
......
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