conga/luci cluster/form-macros site/luci/Exten ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-11-09 20:32:02
Modified files:
luci/cluster : form-macros
luci/site/luci/Extensions: cluster_adapters.py
conga_constants.py
Log message:
fix the cluster start/stop/restart/delete actions in the actions menu so they do what they're supposed to (as opposed to nothing)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.101&r2=1.102
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.156&r2=1.157
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.23&r2=1.24
luci/cluster/form-macros +23 -7
@@ -89,9 +89,27 @@ <td class="cluster cluster_action"> <form method="post" onSubmit="return dropdown(this.gourl)"> <select name="gourl" id="cluster_action" class="cluster"> - <option tal:condition="python: 'running' in cstatus and cstatus['running'] != 'true'" value="" class="cluster running">Start this cluster</option> - <option tal:condition="python: 'running' in cstatus and cstatus['running'] == 'true'" value="" class="cluster stopped">Stop this cluster</option> - <option value="" class="cluster">Restart this cluster</option> + <option class="cluster running" + tal:condition="python: 'running' in cstatus and cstatus['running'] != 'true'" + tal:attributes="value cstatus/start_url | nothing"> + Start this cluster + </option> + + <option class="cluster" + tal:attributes="value cstatus/restart_url | nothing"> + Restart this cluster + </option> + + <option class="cluster stopped" + tal:condition="python: 'running' in cstatus and cstatus['running'] == 'true'" + tal:attributes="value cstatus/stop_url | nothing"> + Stop this cluster + </option> + + <option class="cluster stopped" + tal:attributes="value cstatus/delete_url | nothing"> + Delete this cluster + </option> </select> <input class="cluster" type="submit" value="Go" /> </form>
@@ -1068,11 +1086,9 @@ </div> <div metal:define-macro="clusterprocess-form"> - <tal:block tal:define=" - global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> - <tal:block - tal:define="res python: here.processClusterProps(ricci_agent, request)" /> + tal:define="result python: here.clusterTaskProcess(modelb, request)"/> + <h2>Cluster Process Form</h2> </div> <div metal:define-macro="fence-option-list">
luci/site/luci/Extensions/cluster_adapters.py +427 -367
1,021 lines not on this page · raw message
luci/site/luci/Extensions/conga_constants.py +6 -0
@@ -43,6 +43,12 @@ FENCEDEV_CONFIG="53" FENCEDEV="54" +#Cluster tasks +CLUSTER_STOP = '1000' +CLUSTER_START = '1001' +CLUSTER_RESTART = '1002' +CLUSTER_DELETE = '1003' + #General tasks NODE_LEAVE_CLUSTER="100" NODE_JOIN_CLUSTER="101"