From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 22 Sep 2006 18:22:00 -0000 Subject: [Cluster-devel] conga/luci/cluster form-macros resource-form-m ... Message-ID: <20060922182200.19125.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-09-22 18:21:59 Modified files: luci/cluster : form-macros resource-form-macros resource_form_handlers.js Log message: - resources support - improved user interaction in places - better error handling in places Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.60&r2=1.61 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.12&r2=1.13 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.8&r2=1.9 --- conga/luci/cluster/form-macros 2006/09/14 21:24:24 1.60 +++ conga/luci/cluster/form-macros 2006/09/22 18:21:59 1.61 @@ -31,7 +31,7 @@ tal:define="ragent python: here.getRicciAgent(clu); global stat python: here.getClusterStatus(ragent); global cstatus python: here.getClustersInfo(stat,request); - global cluster_status python: 'cluster ' + (cstatus['running'] == 'true' and 'running' or 'stopped');" + global cluster_status python: 'cluster ' + (('running' in cstatus and cstatus['running'] == 'true') and 'running' or 'stopped');" /> @@ -39,16 +39,16 @@ - @@ -975,10 +993,14 @@ @@ -1093,12 +1115,16 @@ var uuid_list = ; + var global_resources = ; + var active_resources = ; + var resource_names = ;
Cluster Name: + tal:content="cstatus/clusteralias | string: [unknown]" />
@@ -58,7 +58,9 @@
-
    +
      +
    • Status:
    • Total Cluster Votes:
    • Minimum Required Quorum:
    • @@ -67,7 +69,9 @@
+ + Nodes
    @@ -86,11 +90,13 @@
Services
    - +
  • No Services Defined
  • - + @@ -161,28 +167,40 @@
- + - +
- + - +
- + - +
- + - +
@@ -1147,7 +1173,7 @@

Service Composition

@@ -1160,12 +1186,12 @@ id python: res['uuid']"> + global resourceIsRef res/ref_object | nothing" /> @@ -1200,12 +1226,54 @@ + +
--- conga/luci/cluster/resource-form-macros 2006/09/19 17:50:28 1.12 +++ conga/luci/cluster/resource-form-macros 2006/09/22 18:21:59 1.13 @@ -8,7 +8,8 @@

+ value="Submit" + tal:condition="not: sinfo" /> + global expclass python: (((not 'max_depth' in res or res['max_depth'] == 0) and 'invisible ' or '') + 'expander')" />

@@ -93,7 +94,7 @@

-

+

Select a Resource Type

@@ -101,7 +102,7 @@
+ + + + + + + + + + + +

+ +

or

+

+ Use an existing global resource +
+
+ + + + +

+ +