conga/luci cluster/form-chooser cluster/form-m ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-12-21 21:26:20
Modified files:
luci/cluster : form-chooser form-macros
luci/site/luci/Extensions: cluster_adapters.py
conga_constants.py
Log message:
luci: cluster.conf editor
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.136&r2=1.137
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.191&r2=1.192
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.31&r2=1.32
luci/cluster/form-chooser +5 -0
@@ -152,6 +152,11 @@ <span tal:omit-tag="" tal:condition="python: ptype == '55'"> <div metal:use-macro="here/form-macros/macros/fencedevprocess-form"/> </span> + + <span tal:omit-tag="" tal:condition="python: ptype == '80'"> + <div metal:use-macro="here/form-macros/macros/conf_editor-form"/> + </span> + </span> </metal:choose-form> </body>
luci/cluster/form-macros +24 -1
@@ -825,7 +825,8 @@ <tbody class="systemsTable"> <tr class="systemsTable"> - <td class="systemsTable">Post Fail Delay</td> + <td class="systemsTable">Post Fail <span tal:attributes="onclick python:'window.location.assign(\'./?pagetype=80&clustername=' + request['clustername'] + '\')'">Delay</span> + </td> <td class="systemsTable"> <input type="text" name="post_fail_delay" tal:attributes="value clusterinfo/pfd" />
@@ -3871,6 +3872,28 @@ <h2>Fence Device Process Form</h2> </div> +<div metal:define-macro="conf_editor-form"> + <h2>Edit cluster.conf</h2> + <form method="post" + tal:attributes="action python: './?' + request['QUERY_STRING']" + tal:define="ret python: here.process_cluster_conf_editor(request)"> + <span tal:content="structure python: ret['msg'].replace('\n', '<br/>')"/> + <textarea name="new_cluster_conf" + rows="80" + tal:content="structure ret/cluster_conf"></textarea> + <input tal:attributes="type string:hidden; + name string:pagetype; + value python:request['pagetype']"/> + <input tal:attributes="type string:hidden; + name string:clustername; + value python:request['clustername']"/> + <input type="button" + value="Reset" + tal:attributes="onclick python:'window.location.assign(\'./?pagetype=' + request['pagetype'] + '&clustername=' + request['clustername'] + '\')'"/> + <input type="submit" value="Propagate"/> + </form> +</div> + </body> </html>
luci/site/luci/Extensions/cluster_adapters.py +65 -0
68 lines not on this page · raw message
luci/site/luci/Extensions/conga_constants.py +2 -0
@@ -46,6 +46,8 @@ SERVICE_DELETE = '56' FENCEDEV_DELETE = "57" +CONF_EDITOR = '80' + #Cluster tasks CLUSTER_STOP = '1000' CLUSTER_START = '1001'