Commit 630caab2 authored by Romain Courteaud's avatar Romain Courteaud

Added constraint description (defined in the property sheet) in the error

message, in order to display a nice message to the user.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4218 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b35fcad
...@@ -63,7 +63,7 @@ class Constraint: ...@@ -63,7 +63,7 @@ class Constraint:
if error_message: if error_message:
error = (object.getRelativeUrl(), error = (object.getRelativeUrl(),
'%s inconsistency' % self.__class__.__name__, '%s inconsistency' % self.__class__.__name__,
104, error_message) 104, error_message, self.description)
return error return error
def checkConsistency(self, object, fixit=0): def checkConsistency(self, object, fixit=0):
......
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