From 192aa7a172cb129b2937fa551f6ebdbf7b7cad1f Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Mon, 18 Jun 2012 15:19:51 +0200 Subject: [PATCH] This script is also called on Hosting Subscription... --- .../portal_skins/vifib_slap/SoftwareInstance_getStatus.xml | 2 ++ master/bt5/vifib_slap/bt/revision | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml b/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml index 4cb41509f..f44b2bbcd 100644 --- a/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml +++ b/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml @@ -53,6 +53,8 @@ <value> <string>"""Dirty script to return Software Instance state"""\n if context.getPortalType() == "Sale Order Line":\n return "Under Approval"\n +elif context.getPortalType() == "Hosting Subscription":\n + return context.getSlapStateTitle()\n else:\n state = context.getSlapState()\n has_partition = context.getAggregate(portal_type="Computer Partition")\n diff --git a/master/bt5/vifib_slap/bt/revision b/master/bt5/vifib_slap/bt/revision index 4f1a32f19..96e4f13f4 100644 --- a/master/bt5/vifib_slap/bt/revision +++ b/master/bt5/vifib_slap/bt/revision @@ -1 +1 @@ -765 \ No newline at end of file +766 \ No newline at end of file -- 2.30.9