Skip to contentSkip to conversation

conga/luci cluster/configured.png cluster/form ...

Cluster-devel [email protected] 1 participant 1 message Jan 2, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-01-02 20:12:23

Modified files:
luci/cluster : configured.png form-macros installed.png
joined.png notstarted.png portlet_cluconfig rebooted.png
luci/homebase : form-macros luci/site/luci/Extensions: cluster_adapters.py
homebase_adapters.py

Log message:
fixes for regressions found while testing the fix for bz201394

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/configured.png.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.138&r2=1.139
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/installed.png.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/joined.png.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/notstarted.png.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/portlet_cluconfig.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/rebooted.png.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-macros.diff?cvsroot=cluster&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.192&r2=1.193
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/homebase_adapters.py.diff?cvsroot=cluster&r1=1.42&r2=1.43

Binary files /cvs/cluster/conga/luci/cluster/configured.png 2006/10/11 04:39:44 1.1 and /cvs/cluster/conga/luci/cluster/configured.png 2007/01/02 20:12:22 1.2 differ
rcsdiff: /cvs/cluster/conga/luci/cluster/configured.png: diff failed

luci/cluster/form-macros +1 -1
@@ -220,7 +220,7 @@
 		<input name="cluster_os" type="hidden"
 			tal:attributes="value add_cluster/cluster_os | nothing" />
 
-		<table id="systemsTable" class="systemsTable" border="0" cellspacing="0">
+		<table id="systemsTable" class="systemsTable" cellspacing="0">
 			<thead class="systemsTable">
                 <tr class="systemsTable"><td class="systemsTable" colspan="2">
                     <div class="systemsTableTop">

Binary files /cvs/cluster/conga/luci/cluster/installed.png 2006/10/11 04:39:44 1.1 and /cvs/cluster/conga/luci/cluster/installed.png 2007/01/02 20:12:22 1.2 differ
rcsdiff: /cvs/cluster/conga/luci/cluster/installed.png: diff failed
Binary files /cvs/cluster/conga/luci/cluster/joined.png 2006/10/11 04:39:44 1.1 and /cvs/cluster/conga/luci/cluster/joined.png 2007/01/02 20:12:22 1.2 differ
rcsdiff: /cvs/cluster/conga/luci/cluster/joined.png: diff failed
Binary files /cvs/cluster/conga/luci/cluster/notstarted.png 2006/10/11 04:39:44 1.1 and /cvs/cluster/conga/luci/cluster/notstarted.png 2007/01/02 20:12:22 1.2 differ
rcsdiff: /cvs/cluster/conga/luci/cluster/notstarted.png: diff failed

luci/cluster/portlet_cluconfig +2 -1
@@ -34,7 +34,8 @@
        tal:omit-tag=""
        tal:define="global data python:here.createCluConfigTree(request, modelb)">
 
-<dl class="portlet" id="portlet-cluconfig-tree">
+<dl class="portlet" id="portlet-cluconfig-tree"
+	tal:condition="data">
     <dt class="portletHeader">
         <a href="/luci/cluster/index_html?pagetype=3"
 			tal:attributes="href python:here.getClusterURL(request,modelb)">

Binary files /cvs/cluster/conga/luci/cluster/rebooted.png 2006/10/11 04:39:44 1.1 and /cvs/cluster/conga/luci/cluster/rebooted.png 2007/01/02 20:12:22 1.2 differ
rcsdiff: /cvs/cluster/conga/luci/cluster/rebooted.png: diff failed

luci/homebase/form-macros +1 -1
@@ -293,7 +293,7 @@
 
 	<h2 class="homebase">Manage Systems and Clusters</h2>
 
-	<h3>Authenticate to Storage or Cluster Systems</h3>
+	<h3>Reauthenticate to Storage or Cluster Systems</h3>
 
 	<form name="authform" method="post" action="">
 		<table id="systemsTable" class="systemsTable" border="0" cellspacing="0"
luci/site/luci/Extensions/cluster_adapters.py +16 -4
@@ -86,7 +86,8 @@
 	clusterName = None
 	try:
 		clusterName = str(request.form['clusterName'])
-	except:
+	except Exception, e:
+		luci_log.debug_verbose('PNC00: missing cluster name: %s' % str(e))
 		clusterName = None
 
 	if clusterName is None:
@@ -1802,7 +1803,6 @@
   #a clustername query var
   cluname = request['clustername']
 
-
   nd = {}
   nd['Title'] = "Nodes"
   nd['cfg_type'] = "nodes"
@@ -2219,8 +2219,20 @@
     return alias
 
 def getClusterURL(self, request, model):
-  #this method will eventually extract the clustername from the request method
-  return "."
+	try:
+		clustername = request.clustername
+		if not clustername:
+			raise Exception, 'cluster name from request is blank'
+	except:
+		try:
+			clustername = model.getClusterName()
+			if not clustername:
+				raise Exception, 'cluster name from model is blank'
+		except:
+			luci_log.debug_verbose('GCURL0: unable to get cluster name')
+			return '.'
+
+	return '/luci/cluster/index_html?pagetype=7&clustername=%s' % clustername
 
 def getTabs(self, req):
   ###XXX Make this method return only tabs current user can use
luci/site/luci/Extensions/homebase_adapters.py +29 -20

111 lines not on this page · raw message