Commit ace62d1f authored by Antoine Catton's avatar Antoine Catton

Modify HostingSubscription_requestRootSoftwareInstance in order to pass...

Modify HostingSubscription_requestRootSoftwareInstance in order to pass testVifibSlapBang.test_computer_bang_not_called_on_partly_destroyed_tree
parent afd86be1
......@@ -74,18 +74,11 @@ else:\n
\n
# Mostly copy and paste from\n
# portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance\n
request_software_instance = None\n
for si in context.portal_catalog(portal_type=software_instance_portal_type,\n
title=context.getTitle(), root_uid=context.getUid()):\n
try:\n
cleanup_delivery_line = si.Item_getInstancePackingListLine(cleanup_resource)\n
except ValueError:\n
request_software_instance = si\n
break\n
else:\n
if cleanup_delivery_line.getSimulationState() != \'delivered\':\n
request_software_instance = si\n
break\n
request_software_instance = context.portal_catalog.getResultValue(\n
portal_type=software_instance_portal_type,\n
title=context.getTitle(),\n
root_uid=context.getUid(),\n
)\n
\n
if request_software_instance is None:\n
setup_service_relative_url = portal.portal_preferences.getPreferredInstanceSetupResource()\n
......
454
\ No newline at end of file
455
\ 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