From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/site/luci/Extensions homebase_adapt ...
Date: 25 Jul 2006 17:45:51 -0000 [thread overview]
Message-ID: <20060725174551.9265.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-07-25 17:45:51
Modified files:
luci/site/luci/Extensions: homebase_adapters.py
Log message:
refactored delete cluster / system page
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/homebase_adapters.py.diff?cvsroot=cluster&r1=1.16&r2=1.17
--- conga/luci/site/luci/Extensions/homebase_adapters.py 2006/07/19 22:28:17 1.16
+++ conga/luci/site/luci/Extensions/homebase_adapters.py 2006/07/25 17:45:51 1.17
@@ -410,10 +410,7 @@
break
if len(sysData) == 2 and sysData[0] != '' and sysData[1] != '':
- try:
- csResult = createSystem(self, sysData[0], sysData[1])
- except:
- pass
+ csResult = createSystem(self, sysData[0], sysData[1])
if csResult:
errors.append(csResult)
@@ -862,9 +859,12 @@
except:
return 'Unable to authenticate to the ricci agent on \"' + host + '\"'
-# rhost = rc.system_name()
-# if rhost and rhost != host:
-# host = rhost
+ if i != True:
+ return 'Authentication for storage system \"' + host + '\" failed'
+
+ rhost = rc.system_name()
+ if rhost and rhost != host and rhost[:9] != 'localhost' and rhost[:5] != '127.0':
+ host = str(rhost)
try:
exists = self.restrictedTraverse(PLONE_ROOT +'/systems/storage/' + host)
@@ -872,9 +872,6 @@
except:
pass
- if i != True:
- return 'Authentication for storage system \"' + host + '\" failed'
-
try:
ssystem = self.restrictedTraverse(PLONE_ROOT + '/systems/storage/')
except:
@@ -891,6 +888,7 @@
newSystem.manage_role('View', ['Access contents information','View'])
except:
return 'Unable to set permissions on new system \"' + host + '\"'
+ return None
def abortManageCluster(self):
try:
@@ -1169,10 +1167,6 @@
for i in clusters:
cSystems = map(zeroindex, getClusterSystems(self, i[0]))
- for c in cSystems:
- try:
- del storageList[storageList.index(c)]
- except ValueError: pass
ret[0][i[0]] = cSystems
if storageList:
next reply other threads:[~2006-07-25 17:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-25 17:45 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-04-21 18:19 [Cluster-devel] conga/luci/site/luci/Extensions homebase_adapt rmccabe
2008-02-05 20:59 rmccabe
2007-06-06 15:14 rmccabe
2007-01-29 22:06 rmccabe
2007-01-08 19:49 rmccabe
2007-01-08 19:46 rmccabe
2006-11-02 21:12 rmccabe
2006-11-01 20:34 rmccabe
2006-10-30 20:20 rmccabe
2006-10-26 16:57 rmccabe
2006-10-16 15:18 rmccabe
2006-10-13 17:12 rmccabe
2006-10-11 21:48 rmccabe
2006-10-11 18:44 rmccabe
2006-10-06 20:45 rmccabe
2006-10-06 18:58 rmccabe
2006-10-04 13:25 jparsons
2006-08-01 16:27 rmccabe
2006-07-27 13:37 jparsons
2006-07-26 19:50 rmccabe
2006-07-18 19:26 rmccabe
2006-06-27 20:53 rmccabe
2006-06-27 20:47 rmccabe
2006-06-27 17:49 rmccabe
2006-06-26 20:10 rmccabe
2006-06-22 3:58 rmccabe
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=20060725174551.9265.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 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).