Commit 437bc654 authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

Allow to use interaction workflow when fixing consistency

parent 8ebf121a
......@@ -63,8 +63,12 @@ if context.providesIConstraint():\n
traverse = context.getPortalObject().restrictedTraverse\n
property_type_validity = PropertyTypeValidity(id=\'type_check\', description=\'Type Validity Check\')\n
\n
constraint_message_list.extend(context.checkConsistency(fixit=fixit))\n
constraint_message_list.extend(property_type_validity.checkConsistency(context, fixit=fixit))\n
if fixit:\n
constraint_message_list.extend(context.fixConsistency())\n
constraint_message_list.extend(property_type_validity.fixConsistency(context))\n
else:\n
constraint_message_list.extend(context.checkConsistency(fixit=fixit))\n
constraint_message_list.extend(property_type_validity.checkConsistency(context, fixit=fixit))\n
\n
if constraint_message_list:\n
traverse(active_process).postResult(ActiveResult(severity=100,\n
......
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