cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] conga/luci site/luci/Extensions/cluster_adapte ...
@ 2006-09-25 21:00 rmccabe
  0 siblings, 0 replies; only message in thread
From: rmccabe @ 2006-09-25 21:00 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2006-09-25 21:00:14

Modified files:
	luci/site/luci/Extensions: cluster_adapters.py 
	luci/cluster   : form-macros 

Log message:
	fix a couple of breaindead errors

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.68&r2=1.69
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.69&r2=1.70

--- conga/luci/site/luci/Extensions/cluster_adapters.py	2006/09/25 17:36:02	1.68
+++ conga/luci/site/luci/Extensions/cluster_adapters.py	2006/09/25 21:00:14	1.69
@@ -188,6 +188,9 @@
   
 
 def validateAddClusterNode(self, request):
+	errors = list()
+	messages = list()
+
 	try:
 	 	sessionData = request.SESSION.get('checkRet')
 	except:
@@ -196,7 +199,7 @@
 	if 'clusterName' in request.form:
 		clusterName = request.form['clusterName']
 	else:
-		return (False, {'errrors': [ 'Cluster name is missing'] })
+		return (False, {'errors': [ 'Cluster name is missing'] })
 
 	try:
 		numStorage = int(request.form['numStorage'])
@@ -206,7 +209,7 @@
 		errors.append('You must specify at least one node to add to the cluster')
 		return (False, {'errors': [ errors ] })
 
-	ret = validateClusterNodes(sessionData, request, clusterName, numStorage)
+	ret = validateClusterNodes(request, sessionData, clusterName, numStorage)
 	errors.extend(ret[0])
 	cluster_properties = ret[1]
 
--- conga/luci/cluster/form-macros	2006/09/25 16:31:28	1.69
+++ conga/luci/cluster/form-macros	2006/09/25 21:00:14	1.70
@@ -1047,6 +1047,10 @@
 	<form name="adminform" action="" method="post">
 		<input name="numStorage" type="hidden" value="1" />
 		<input name="pagetype" type="hidden" value="15" />
+		<input type="hidden" name="clusterName"
+			tal:attributes="
+				value request/form/clusterName | request/clustername | nothing"
+		/>
 
 		<h2>Add a node to <span tal:replace="request/form/clusterName | request/clustername | string: the cluster" /></h2>
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-25 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 21:00 [Cluster-devel] conga/luci site/luci/Extensions/cluster_adapte rmccabe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).