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): ...@@ -632,7 +632,7 @@ class XMLMatrix(Folder):
# Check useless cells # Check useless cells
to_delete_set = set() to_delete_set = set()
error_list = [] error_list = []
def addError(message): def addError(error_message):
if fixit: if fixit:
error_message += ' (fixed)' error_message += ' (fixed)'
error = (self.getRelativeUrl(), error = (self.getRelativeUrl(),
...@@ -679,9 +679,9 @@ class XMLMatrix(Folder): ...@@ -679,9 +679,9 @@ class XMLMatrix(Folder):
# Check empty indices. # Check empty indices.
empty_list = [] empty_list = []
base_item = self.index[base_id] 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: 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) empty_list.append(key)
if fixit: if fixit:
for i in empty_list: 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