From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci site/luci/Extensions/cluster_adapte ...
Date: 25 Sep 2006 21:00:15 -0000 [thread overview]
Message-ID: <20060925210015.10141.qmail@sourceware.org> (raw)
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>
reply other threads:[~2006-09-25 21:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060925210015.10141.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.