conga/luci/cluster form-macros index_html
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-11-07 20:28:36
Modified files:
luci/cluster : form-macros index_html
Log message:
fixes for model builder disappearing
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.99&r2=1.100
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.diff?cvsroot=cluster&r1=1.25&r2=1.26
luci/cluster/form-macros +72 -33
@@ -61,18 +61,17 @@ <div id="cluster_list"> <div class="cluster" tal:repeat="clu clusystems"> - <tal:block tal:define=" - global ragent python: here.getRicciAgent(clu[0])" /> + global ricci_agent python: here.getRicciAgent(clu[0])" /> - <div tal:condition="python: not ragent"> + <div tal:condition="python: not ricci_agent"> <strong class="errmsgs">An error occurred when trying to contact any of the nodes in the <span tal:replace="python: clu[0]"/> cluster.</strong> <hr/> </div> - <tal:block tal:condition="python: ragent"> + <tal:block tal:condition="python: ricci_agent"> <tal:block tal:define=" - global stat python: here.getClusterStatus(ragent); + global stat python: here.getClusterStatus(ricci_agent); global cstatus python: here.getClustersInfo(stat, request); global cluster_status python: 'cluster ' + (('running' in cstatus and cstatus['running'] == 'true') and 'running' or 'stopped');" />
@@ -352,7 +351,13 @@ set_page_title('Luci ??? cluster ??? Configure cluster properties'); </script> - <span tal:define="global ricci_agent python: here.getRicciAgentForCluster(request)" /> + <tal:block tal:define=" + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:condition="not: exists: modelb"> + <tal:block tal:define="global modelb python: None" /> + </tal:block> + <tal:block tal:define="global clusterinfo python: here.getClusterInfo(modelb, request)" />
@@ -361,25 +366,25 @@ <ul class="configTab"> <li class="configTab"> <a tal:attributes=" - href python: request['URL'] + '?pagetype=' + request['pagetype'] + '&clustername=' + request['clustername'] + '&tab=1'; + href clusterinfo/basecluster_url | nothing; class python: 'configTab' + (configTabNum == 1 and ' configTabActive' or ''); ">General</a> </li> <li class="configTab"> <a tal:attributes=" - href python: request['URL'] + '?pagetype=' + request['pagetype'] + '&clustername=' + request['clustername'] + '&tab=2'; + href clusterinfo/fencedaemon_url | nothing; class python: 'configTab' + (configTabNum == 2 and ' configTabActive' or ''); ">Fence</a> </li> <li class="configTab"> <a tal:attributes=" - href python: request['URL'] + '?pagetype=' + request['pagetype'] + '&clustername=' + request['clustername'] + '&tab=3'; + href clusterinfo/multicast_url | nothing; class python: 'configTab' + (configTabNum == 3 and ' configTabActive' or ''); ">Multicast</a> </li> <li class="configTab"> <a tal:attributes=" - href python: request['URL'] + '?pagetype=' + request['pagetype'] + '&clustername=' + request['clustername'] + '&tab=4'; + href clusterinfo/quorumd_url | nothing; class python: 'configTab' + (configTabNum == 4 and ' configTabActive' or ''); ">Quorum Partition</a> </li>
@@ -399,7 +404,9 @@ <input type="hidden" name="pagetype" tal:attributes="value request/pagetype | request/form/pagetype" /> - <input type="hidden" name="configtype" value="general" /> + <input type="hidden" name="configtype" value="general" /> + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | clusterinfo/clustername | nothing" /> <table id="systemsTable" class="systemsTable" border="0" cellspacing="0"> <thead class="systemsTable">
@@ -705,11 +712,16 @@ </div> <div id="configTabContent" tal:condition="python: configTabNum == 2"> - <form name="fencedaemon" method="post"> + <form name="fencedaemon" method="post" action=""> <input type="hidden" name="configtype" value="fence" /> <input type="hidden" name="pagetype" tal:attributes="value request/pagetype | request/form/pagetype" /> + <input type="hidden" name="cluster_version" + tal:attributes="value os_version | nothing" /> + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | clusterinfo/clustername | nothing" /> + <script type="text/javascript" src="/luci/homebase/homebase_common.js"> </script>
@@ -770,6 +782,10 @@ <input type="hidden" name="pagetype" tal:attributes="value request/pagetype | request/form/pagetype" /> + <input type="hidden" name="cluster_version" + tal:attributes="value os_version | nothing" /> + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | clusterinfo/clustername | nothing" /> <table id="systemsTable" class="systemsTable" border="0" cellspacing="0"> <thead class="systemsTable"> <tr class="systemsTable"><td class="systemsTable" colspan="1">
@@ -836,6 +852,10 @@ tal:attributes="value request/pagetype | request/form/pagetype" /> <input type="hidden" name="configtype" value="qdisk" /> + <input type="hidden" name="cluster_version" + tal:attributes="value os_version | nothing" /> + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | clusterinfo/clustername | nothing" /> <div class="configTabContent"> <table id="systemsTable" class="systemsTable" border="0" cellspacing="0"> <thead class="systemsTable">
@@ -1048,8 +1068,11 @@ </div> <div metal:define-macro="clusterprocess-form"> - <span tal:define="global r_agent python: here.getRicciAgentForCluster(request)"/> - <span tal:define="res python: here.processClusterProps(r_agent, request)"/> + <tal:block tal:define=" + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block + tal:define="res python: here.processClusterProps(ricci_agent, request)" /> </div> <div metal:define-macro="fence-option-list">
@@ -1678,7 +1701,9 @@ </tal:comment> <tal:block tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" global nodestatus python: here.getClusterStatus(ricci_agent); global nodeinfo python: here.getNodeInfo(modelb, nodestatus, request); global status_class python: 'node_' + (nodeinfo['nodestate'] == '0' and 'active' or (nodeinfo['nodestate'] == '1' and 'inactive' or 'unknown'));
@@ -1870,10 +1895,13 @@ set_page_title('Luci ??? cluster ??? nodes'); </script> -<div id="node_list" tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); - global status python: here.getClusterStatus(ricci_agent); - global nds python: here.getNodesInfo(modelb, status, request)"> +<div id="node_list"> + <tal:block tal:define=" + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" + global status python: here.getClusterStatus(ricci_agent); + global nds python: here.getNodesInfo(modelb, status, request)" /> <div tal:repeat="nd nds"> <tal:block
@@ -2086,12 +2114,13 @@ set_page_title('Luci ??? cluster ??? services'); </script> - <tal:block tal:omit-tag="" - tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); - global svcstatus python: here.getClusterStatus(ricci_agent); - global svcinf python: here.getServicesInfo(svcstatus,modelb,request); - global svcs svcinf/services" /> + <tal:block tal:define=" + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" + global svcstatus python: here.getClusterStatus(ricci_agent); + global svcinf python: here.getServicesInfo(svcstatus,modelb,request); + global svcs svcinf/services" /> <tal:block tal:repeat="svc svcs"> <table class="cluster service" width="100%"
@@ -2240,7 +2269,9 @@ </script> <tal:block tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" result python: here.serviceStart(ricci_agent, request)" /> <!-- <span metal:use-macro="here/form-macros/macros/serviceconfig-form"/> -->
@@ -2253,7 +2284,9 @@ </script> <tal:block tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" result python: here.serviceRestart(ricci_agent, request)" /> <!-- <span metal:use-macro="here/form-macros/macros/serviceconfig-form"/> -->
@@ -2264,15 +2297,17 @@ set_page_title('Luci ??? cluster ??? services ??? Stop a service'); </script> + <tal:block tal:define=" + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + <span tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); result python: here.serviceStop(ricci_agent, request)" /> <!-- <span metal:use-macro="here/form-macros/macros/serviceconfig-form"/> --> </div> <div metal:define-macro="serviceconfig-type-macro" tal:omit-tag=""> - <span tal:omit-tag="" tal:condition="python: type == 'IP Address: '"> + <span tal:omit-tag="" tal:condition="python: type == 'ip'"> <tal:block metal:use-macro="here/resource-form-macros/macros/ip_macro" /> </span> <span tal:omit-tag="" tal:condition="python: type == 'fs'">
@@ -2293,7 +2328,7 @@ <span tal:omit-tag="" tal:condition="python: type == 'smb'"> <tal:block metal:use-macro="here/resource-form-macros/macros/smb_macro" /> </span> - <span tal:omit-tag="" tal:condition="python: type == 'Script: '"> + <span tal:omit-tag="" tal:condition="python: type == 'script'"> <tal:block metal:use-macro="here/resource-form-macros/macros/scr_macro" /> </span> </div>
@@ -2307,7 +2342,9 @@ </script> <tal:block tal:define=" - global ricci_agent python: here.getRicciAgentForCluster(request); + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" global global_resources python: here.getResourcesInfo(modelb, request); global sstat python: here.getClusterStatus(ricci_agent); global sinfo python: here.getServiceInfo(sstat, modelb, request);
@@ -2475,8 +2512,10 @@ </script> <tal:block tal:define=" - global ragent python: here.getRicciAgentForCluster(request); - global sta python: here.getClusterStatus(ragent); + global ricci_agent ri_agent | python: here.getRicciAgentForCluster(request)" /> + + <tal:block tal:define=" + global sta python: here.getClusterStatus(ricci_agent); global fdominfo python: here.getFdomsInfo(modelb, request, sta);" /> <div class="cluster fdom" tal:repeat="fdom fdominfo">
luci/cluster/index_html +49 -48
141 lines not on this page · raw message