Commit c4ef27b5 authored by Romain Courteaud's avatar Romain Courteaud

Change the state at the end to allow to execute updateLocalRoles only once in the transaction

parent 9d90f8e6
...@@ -110,8 +110,6 @@ if (request_hosting_subscription is None):\n ...@@ -110,8 +110,6 @@ if (request_hosting_subscription is None):\n
destination_section=person.getRelativeUrl(),\n destination_section=person.getRelativeUrl(),\n
activate_kw={\'tag\': tag},\n activate_kw={\'tag\': tag},\n
)\n )\n
request_hosting_subscription.portal_workflow.doActionFor(request_hosting_subscription,\n
\'validate_action\')\n
\n \n
request_hosting_subscription.edit(\n request_hosting_subscription.edit(\n
text_content=instance_xml,\n text_content=instance_xml,\n
...@@ -134,6 +132,11 @@ else:\n ...@@ -134,6 +132,11 @@ else:\n
\n \n
context.REQUEST.set(\'request_hosting_subscription\', request_hosting_subscription)\n context.REQUEST.set(\'request_hosting_subscription\', request_hosting_subscription)\n
request_hosting_subscription.HostingSubscription_requestRootSoftwareInstance(tag, person=person)\n request_hosting_subscription.HostingSubscription_requestRootSoftwareInstance(tag, person=person)\n
\n
# Change the state at the end to allow to execute updateLocalRoles only once in the transaction\n
if request_hosting_subscription.getValidationState() == \'draft\':\n
request_hosting_subscription.portal_workflow.doActionFor(request_hosting_subscription,\n
\'validate_action\')\n
]]></string> </value> ]]></string> </value>
......
708 709
\ 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