Commit 896f281c authored by Antoine Catton's avatar Antoine Catton

Go back to 68a50590

This reverts commits :
  * 7eb1736e
  * 77d39d14
  * 42c516e4
  * a1c5083a

Conflicts:

	master/bt5/vifib_base/bt/revision
parent 29aeddd8
......@@ -55,26 +55,6 @@ software_instance = state_change[\'object\']\n
\n
# Change the title\n
software_instance.edit(title=state_change.kwargs[\'new_name\'])\n
\n
# Reattach to root hosting subscription\n
sale_packing_list_line = context.SoftwareInstance_getInstanceSetupPackingListLine(state_change)\n
hosting_subscription = sale_packing_list_line.getAggregateValue(portal_type=\'Hosting Subscription\')\n
parent = software_instance.getPredecessorRelatedValue(\n
portal_type=["Hosting Subscription", "Software Instance", "Slave Instance"]\n
)\n
\n
if parent != hosting_subscription:\n
\n
parent_predecessor_list = parent.getPredecessorList()\n
hosting_subscription_predecessor_list = hosting_subscription.getPredecessorList()\n
\n
\n
hosting_subscription_predecessor_list.append(\n
parent_predecessor_list.pop(parent_predecessor_list.index(software_instance.getRelativeUrl()))\n
)\n
\n
hosting_subscription.edit(predecessor_list=hosting_subscription_predecessor_list)\n
parent.edit(predecessor_list=parent_predecessor_list)\n
</string> </value>
</item>
<item>
......
346
\ No newline at end of file
347
\ 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