Commit f2234ec9 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

ConsistencyMessage: Make Constraint Usage facultative

parent cfec3c6f
......@@ -45,6 +45,10 @@ class ConsistencyMessage(ObjectMessage):
init specific variable to constraint
"""
ObjectMessage.__init__(self, object_relative_url, message, mapping)
self.description = ""
self.class_name = "Constraint Message"
self.constraint_relative_url = ""
if constraint:
self.description = constraint.description
self.class_name = constraint.__class__.__name__
# keep track of the relative URL of the constraint to have it included in
......
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