Commit 51391584 authored by Romain Courteaud's avatar Romain Courteaud

Explicitely use named parameter.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18925 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75f32e5f
......@@ -79,8 +79,10 @@ class Constraint:
"""Generic method used to generate error in checkConsistency.
"""
if error_message is not None:
msg = ConsistencyMessage(self, obj.getRelativeUrl(),
error_message, mapping)
msg = ConsistencyMessage(self,
object_relative_url=obj.getRelativeUrl(),
message=error_message,
mapping=mapping)
return msg
def _checkConstraintCondition(self, obj):
......
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