From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci cluster/resource-form-macros site/l ...
Date: 7 Aug 2010 03:16:02 -0000 [thread overview]
Message-ID: <20100807031602.13200.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2010-08-07 03:16:02
Modified files:
luci/cluster : resource-form-macros
luci/site/luci/Extensions: ResourceHandler.py
Log message:
Fix rhbz#587399 - Clarification on "type" when configuring oracledb resources
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.21.2.16&r2=1.21.2.17
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ResourceHandler.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.4.9&r2=1.1.4.10
--- conga/luci/cluster/resource-form-macros 2009/05/21 13:32:04 1.21.2.16
+++ conga/luci/cluster/resource-form-macros 2010/08/07 03:16:01 1.21.2.17
@@ -1495,6 +1495,27 @@
value res/attrs/home | nothing" />
</td>
</tr>
+ <tr>
+ <td>Oracle installation type</td>
+ <td>
+ <select name="oracletype"
+ tal:attributes="disabled python: editDisabled"
+ tal:define="odbtype res/attrs/type | string:default">
+ <option name="default" value="default"
+ tal:content="string:Default"
+ tal:attributes="selected python:odbtype == 'default' and 'selected'"/>
+ <option value="base"
+ tal:content="string:Database Instance and Listener only"
+ tal:attributes="selected python:odbtype == 'base' and 'selected'"/>
+ <option value="base-em"
+ tal:content="string:Database, Listener, Enterprise Manager, and iSQL*Plus"
+ tal:attributes="selected python:odbtype in ('10g', 'base-em') and 'selected'"/>
+ <option value="ias"
+ tal:content="string:Internet Application Server (Infrastructure)"
+ tal:attributes="selected python:odbtype in ('ias', '10g-ias') and 'selected'"/>
+ </select>
+ </td>
+ </tr>
<tr class="systemsTable">
<td class="systemsTable">Virtual hostname (optional)</td>
<td class="systemsTable">
--- conga/luci/site/luci/Extensions/ResourceHandler.py 2010/01/07 18:08:35 1.1.4.9
+++ conga/luci/site/luci/Extensions/ResourceHandler.py 2010/08/07 03:16:02 1.1.4.10
@@ -804,13 +804,17 @@
params = (
('user', 'Oracle User Name', True, None),
('home', 'Oracle Home Directory', True, None),
- #('type', 'Oracle Installation Type', True, None),
+ ('oracletype', 'Oracle Installation Type', False, None),
('vhost', 'Virtual Hostname', False, None)
)
errors = config_resource(params, res, rname, form)
- dbtype = res.getAttribute('type')
- if not dbtype:
- res.addAttribute('type', '10g')
+ dbtype = res.getAttribute('oracletype')
+ res.removeAttribute('type')
+ if dbtype:
+ res.removeAttribute('oracletype')
+ dbtype = dbtype.lower()
+ if dbtype in ('base', 'base-em', '10g', 'ias', '10g-ias'):
+ res.addAttribute('type', dbtype)
return errors
resource_table = {
next reply other threads:[~2010-08-07 3:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-07 3:16 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-25 20:01 [Cluster-devel] conga/luci cluster/resource-form-macros site/l rmccabe
2008-05-12 18:04 rmccabe
2008-05-12 18:03 rmccabe
2007-05-30 22:39 rmccabe
2007-02-22 20:52 rmccabe
2007-02-22 20:52 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=20100807031602.13200.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.