Commit d62fef59 authored by Romain Courteaud's avatar Romain Courteaud Committed by Alain Takoudjou

Allow to use interaction workflow when fixing consistency

parent 45973767
......@@ -66,9 +66,14 @@ missing_category_document = portal.portal_trash.newContent(\n
temp_object=True)\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
constraint_message_list.extend(missing_category_document.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
constraint_message_list.extend(missing_category_document.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
constraint_message_list.extend(missing_category_document.checkConsistency(context, fixit=fixit))\n
\n
if constraint_message_list:\n
portal.restrictedTraverse(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