Commit 05c979fc authored by Gabriel Monnerat's avatar Gabriel Monnerat

Base.checkConsistency: s/error_list2/extra_error_list/

parent 3a4a3296
...@@ -2558,12 +2558,12 @@ class Base( CopyContainer, ...@@ -2558,12 +2558,12 @@ class Base( CopyContainer,
for constraint_instance in self._filteredConstraintList(filter): for constraint_instance in self._filteredConstraintList(filter):
if fixit: if fixit:
error_list2 = UnrestrictedMethod( extra_error_list = UnrestrictedMethod(
constraint_instance.fixConsistency)(self, **kw) constraint_instance.fixConsistency)(self, **kw)
else: else:
error_list2 = UnrestrictedMethod( extra_error_list = UnrestrictedMethod(
constraint_instance.checkConsistency)(self, **kw) constraint_instance.checkConsistency)(self, **kw)
if len(error_list2) > 0: if len(extra_error_list) > 0:
try: try:
if not fixit: if not fixit:
extra_error_list = constraint_instance.checkConsistency(self, **kw) extra_error_list = constraint_instance.checkConsistency(self, **kw)
...@@ -2572,7 +2572,7 @@ class Base( CopyContainer, ...@@ -2572,7 +2572,7 @@ class Base( CopyContainer,
except Unauthorized: except Unauthorized:
error_list.append(getUnauthorizedErrorMessage(constraint_instance)) error_list.append(getUnauthorizedErrorMessage(constraint_instance))
else: else:
error_list += error_list2 error_list += extra_error_list
if fixit and len(error_list) > 0: if fixit and len(error_list) > 0:
self.reindexObject() self.reindexObject()
......
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