Commit d6c22018 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Minor fixup

     Fix up when you pass path and when you pass the object for the newContent
parent 7df8d2b4
Pipeline #15102 failed with stage
in 0 seconds
......@@ -18,10 +18,10 @@ if destination_project is None and source_project is not None:
destination_project = source_project.getRelativeUrl()
if source_section is None:
source_section = context.getSourceAdministration()
source_section = context.getSourceAdministrationValue()
if destination_section is None:
destination_section = source_section
destination_section = source_section.getRelativeUrl()
source = context.getSourceAdministration()
destination = context.getSourceAdministration()
......@@ -39,7 +39,7 @@ delivery = module.newContent(title="Transfer %s to %s" % (context.getTitle(), de
destination_section=destination_section,
source_decision=destination_section,
destination_decision=destination_section,
destination_project_value=destination_project,
destination_project=destination_project,
start_date=DateTime(),
stop_date=DateTime(),
portal_type=portal_type)
......
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