if context.getPortalType() == "Hosting Subscription":\n
return context.getSlapStateTitle()\n
else:\n
state = context.getSlapState()\n
...
...
@@ -62,17 +60,9 @@ else:\n
if not has_partition:\n
return \'Looking for a free partition\'\n
else:\n
delivery = context.getCausalityValue()\n
delivery_state = delivery is not None and delivery.getSimulationState() or None\n
if state == "start_requested":\n
if delivery_state is not None and delivery_state == "started":\n
return \'Started\'\n
else:\n
return \'Start in progress\' \n
elif state == "stop_requested":\n
if delivery_state is not None and delivery_state == "delivered" or (delivery.getPortalType() == \'Sale Order\' and delivery.getSimulationState() == \'confirmed\'):\n