Commit b4d24e9a authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid interaciton during migration editing.

parent 542550c2
...@@ -148,7 +148,10 @@ def SlapDocument_migrateSlapState(self): ...@@ -148,7 +148,10 @@ def SlapDocument_migrateSlapState(self):
assert(slap_document.getDestinationSection() == explanation_delivery_line.getDestinationSectionValue().getRelativeUrl()) assert(slap_document.getDestinationSection() == explanation_delivery_line.getDestinationSectionValue().getRelativeUrl())
else: else:
hosting_subscription = explanation_delivery_line.getAggregateValue(portal_type='Hosting Subscription') hosting_subscription = explanation_delivery_line.getAggregateValue(portal_type='Hosting Subscription')
slap_document.edit( @WorkflowMethod.disable
def edit(slap_document, **kw):
slap_document.edit(**kw)
edit(slap_document,
specialise_value=hosting_subscription, specialise_value=hosting_subscription,
root_software_release_url=explanation_delivery_line.getAggregateValue(portal_type='Software Release').getUrlString() root_software_release_url=explanation_delivery_line.getAggregateValue(portal_type='Software Release').getUrlString()
) )
......
108 109
\ 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