Commit 18a5b6c9 authored by Romain Courteaud's avatar Romain Courteaud

Allow to use interaction workflow when fixing consistency

parent 43b1ae1b
...@@ -63,8 +63,12 @@ if context.providesIConstraint():\n ...@@ -63,8 +63,12 @@ if context.providesIConstraint():\n
traverse = context.getPortalObject().restrictedTraverse\n traverse = context.getPortalObject().restrictedTraverse\n
property_type_validity = PropertyTypeValidity(id=\'type_check\', description=\'Type Validity Check\')\n property_type_validity = PropertyTypeValidity(id=\'type_check\', description=\'Type Validity Check\')\n
\n \n
constraint_message_list.extend(context.checkConsistency(fixit=fixit))\n if fixit:\n
constraint_message_list.extend(property_type_validity.checkConsistency(context, fixit=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 \n
if constraint_message_list:\n if constraint_message_list:\n
traverse(active_process).postResult(ActiveResult(severity=100,\n traverse(active_process).postResult(ActiveResult(severity=100,\n
......
144 145
\ No newline at end of file \ No newline at end of file
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