[Cluster-devel] conga/luci/site/luci/Extensions cluster_adapte ...

rmccabe at sourceware.org rmccabe at sourceware.org
Mon Mar 12 05:46:07 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL5
Changes by:	rmccabe at sourceware.org	2007-03-12 05:46:07

Modified files:
	luci/site/luci/Extensions: cluster_adapters.py 

Log message:
	Fix the navigation portal so the correct item is highlighted when adding and editing virtual services.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.120.2.24&r2=1.120.2.25

--- conga/luci/site/luci/Extensions/cluster_adapters.py	2007/03/12 04:22:26	1.120.2.24
+++ conga/luci/site/luci/Extensions/cluster_adapters.py	2007/03/12 05:46:07	1.120.2.25
@@ -2684,11 +2684,11 @@
   sv['cfg_type'] = "services"
   sv['absolute_url'] = url + "?pagetype=" + SERVICES + "&clustername=" + cluname
   sv['Description'] = "Service configuration for this cluster"
-  if pagetype == SERVICES or pagetype == SERVICE_CONFIG or pagetype == SERVICE_ADD or pagetype == SERVICE:
+  if pagetype == SERVICES or pagetype == SERVICE_CONFIG or pagetype == SERVICE_ADD or pagetype == SERVICE or pagetype == SERVICE_LIST or pagetype == VM_ADD or pagetype == VM_CONFIG:
     sv['show_children'] = True
   else:
     sv['show_children'] = False
-  if pagetype == SERVICES:
+  if pagetype == SERVICES or pagetype == SERVICE_LIST:
     sv['currentItem'] = True
   else:
     sv['currentItem'] = False
@@ -2719,11 +2719,11 @@
   svcfg['cfg_type'] = "servicecfg"
   svcfg['absolute_url'] = url + "?pagetype=" + SERVICE_CONFIG + "&clustername=" + cluname
   svcfg['Description'] = "Configure a Service for this cluster"
-  if pagetype == SERVICE_CONFIG or pagetype == SERVICE:
+  if pagetype == SERVICE_CONFIG or pagetype == SERVICE or pagetype == VM_CONFIG:
     svcfg['show_children'] = True
   else:
     svcfg['show_children'] = False
-  if pagetype == SERVICE_CONFIG:
+  if pagetype == SERVICE_CONFIG or pagetype == VM_CONFIG:
     svcfg['currentItem'] = True
   else:
     svcfg['currentItem'] = False




More information about the Cluster-devel mailing list