Commit fc596435 authored by Bartek Górny's avatar Bartek Górny

return a list if no errors found

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12533 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 47af4d90
...@@ -41,7 +41,7 @@ class DocumentReferenceConstraint(Constraint): ...@@ -41,7 +41,7 @@ class DocumentReferenceConstraint(Constraint):
(although we could, e.g. by changing version number) (although we could, e.g. by changing version number)
""" """
def checkConsistency(self, object, fixit=0): # XXX-JPS throw is not part of API - Please remove def checkConsistency(self, object, fixit=0):
""" """
Implement here the consistency checker Implement here the consistency checker
""" """
...@@ -65,7 +65,6 @@ class DocumentReferenceConstraint(Constraint): ...@@ -65,7 +65,6 @@ class DocumentReferenceConstraint(Constraint):
raise Exception('Fatal error: multiple objects %s - %s - %s exist' % (object.getReference(), raise Exception('Fatal error: multiple objects %s - %s - %s exist' % (object.getReference(),
object.getLanguage(), object.getVersion())) object.getLanguage(), object.getVersion()))
#error_list.append(self._generateError(object, N_(s))) #error_list.append(self._generateError(object, N_(s)))
if error_list: return error_list
return error_list
# vim: filetype=python syntax=python shiftwidth=2 # vim: filetype=python syntax=python shiftwidth=2
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