Skip to contentSkip to conversation

conga/luci/storage cache_report check-batch cl ...

Cluster-devel [email protected] 1 participant 1 message Sep 25, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-25 03:50:28

Modified files:
luci/storage : cache_report check-batch clu_portlet_fetcher
form-chooser form-macros index_html mappings_macros mappings_provider portlet_cluconfig portlet_cluconfig_macro validate_html
Removed files:

	luci/storage   : 100wait.gif black_bar_40.png 
	                 black_right_end_40.png blue_bar_40.png 
	                 blue_cap_40.png blue_right_end_40.png 
	                 icon_bd_LV.png icon_bd_LV_snapshot.png 
	                 icon_bd_crypto.png icon_bd_ide.png 
	                 icon_bd_multipath.png icon_bd_net.png 
	                 icon_bd_partition.png icon_bd_raid.png 
	                 icon_bd_scsi.png icon_content_FS.png 
	                 icon_content_PV.png icon_mapper_PT.png 
	                 icon_mapper_VG.png icon_mapper_crypto.png 
	                 icon_mapper_multipath.png icon_mapper_raid.png 
	                 red_bar_40.png red_cap_40.png 
	                 red_right_end_40.png selection_1px_40.png 
	                 selection_bar_40.png selection_left_end_40.png 
	                 selection_right_end_40.png snapshot.gif 
	                 tree_bullet.gif tree_closed.gif tree_opened.gif 
	                 tree_transparent.gif 

Log message:
Cleanup:
- First pass of making the look and feel of this consistent with the rest of the app
- Move all the image files into the site custom directory so they can be cached

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/cache_report.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/check-batch.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/clu_portlet_fetcher.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-chooser.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/index_html.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/mappings_macros.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/mappings_provider.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/portlet_cluconfig.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/portlet_cluconfig_macro.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/validate_html.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/100wait.gif.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/black_bar_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/black_right_end_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/blue_bar_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/blue_cap_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/blue_right_end_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_LV.png.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_LV_snapshot.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_crypto.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_ide.png.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_multipath.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_net.png.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_partition.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_raid.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_bd_scsi.png.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_content_FS.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_content_PV.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_mapper_PT.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_mapper_VG.png.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_mapper_crypto.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_mapper_multipath.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/icon_mapper_raid.png.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/red_bar_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/red_cap_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/red_right_end_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/selection_1px_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/selection_bar_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/selection_left_end_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/selection_right_end_40.png.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/snapshot.gif.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/tree_bullet.gif.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/tree_closed.gif.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/tree_opened.gif.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/tree_transparent.gif.diff?cvsroot=cluster&r1=1.1&r2=NONE

luci/storage/cache_report +16 -13
@@ -1,15 +1,18 @@
-<span tal:define="global storagename request/storagename|nothing"
-      tal:replace="string:"/>
-<span tal:define="stosystemss context/systems/storage/objectItems;
-                  global allowed_systems python:here.allowed_systems(stosystemss);
-                  global access_to_host_allowed python:here.access_to_host_allowed(storagename, allowed_systems)"
-      tal:replace="string:"/>
-<span tal:define="global ricci python:here.get_ricci_communicator(storagename, allowed_systems);
-                  global cache_result python:here.cache_storage_report(ricci, request.SESSION)"
-      tal:replace="string:"/>
-<span tal:condition="python: cache_result == True"
-      tal:replace="string:OK"/>
+<tal:block tal:define="global storagename request/storagename|nothing" />
+
+<tal:block tal:define="
+	stosystemss context/systems/storage/objectItems;
+	global allowed_systems python:here.allowed_systems(stosystemss);
+	global access_to_host_allowed python:here.access_to_host_allowed(storagename, allowed_systems)" />
+
+<tal:block tal:define="
+	global ricci python:here.get_ricci_communicator(storagename, allowed_systems);
+	global cache_result python:here.cache_storage_report(ricci, request.SESSION)" />
+
+<span tal:condition="python: cache_result == True" tal:replace="string:OK" />
+
 <span tal:condition="python: cache_result != True and access_to_host_allowed"
-      tal:replace="structure cache_result"/>
+	tal:replace="structure cache_result" />
+
 <span tal:condition="python: not access_to_host_allowed"
-      tal:replace="string: Insufficient Rights"/>
+	tal:replace="string: Insufficient Rights" />
luci/storage/check-batch +45 -57

105 lines not on this page · raw message

luci/storage/clu_portlet_fetcher +8 -37

51 lines not on this page · raw message

luci/storage/form-chooser +66 -77

146 lines not on this page · raw message

luci/storage/form-macros +10 -18
@@ -38,13 +38,11 @@
 }
 tr.props-form-header th {
     background-color: #dee7ec;
-    text-align: center;
+    text-align: left;
 }
 tr.props-form-header th:first-child {
-    -moz-border-radius-topleft: 15px;
 }
 tr.props-form-header th:last-child {
-    -moz-border-radius-topright: 15px;
 }
 
 tr.props-form-body {
@@ -68,10 +66,8 @@
     padding: 3px;
 }
 tr.props-form-footer td:first-child {
-    -moz-border-radius-bottomleft: 15px;
 }
 tr.props-form-footer td:last-child {
-    -moz-border-radius-bottomright: 15px;
 }
 
 table.props-inner-table {
@@ -182,12 +178,12 @@
 <div metal:define-macro="display-committing-changes">
    <table style="width: 100%;">
     <tr>
-     <td align="center">
+     <td align="left">
       <img src="100wait.gif" style="padding-top: 1cm;"/>
      </td>
     </tr>
     <tr>
-     <td align="center">
+     <td align="left">
       <div style="padding-bottom: 4cm;">Committing Changes</div>
      </td>
     </tr>
@@ -236,7 +232,7 @@
 
    <table style="width: 100%;">
     <tr>
-     <td align="center">
+     <td align="left">
       <img src="100wait.gif" style="padding-top: 1cm;"/>
      </td>
     </tr>
@@ -350,7 +346,7 @@
 
   <div metal:define-macro="error-form">
    <h2>Error Form</h2>
-   An error has occured, more details once implemented :)
+   An error has occurred.
   </div>
 
 
@@ -599,7 +595,7 @@
    <span tal:omit-tag=""
          tal:define="mapper             python:here.get_mapper_data(storage_report, request['mapper_id']);
                      properties_span_id python:mapper['mapper_id'] + '_properties_span_id'">
-    <div align="center">
+    <div align="left">
      <h3>
       <span tal:content="python:mapper['pretty_type'] + ' '"/>
       <span style="cursor: pointer; text-decoration: underline"
@@ -691,7 +687,7 @@
     <div tal:attributes="id properties_span_id"
          style="width: 700px; min-height: 360px; ">
      <span id="warning_box"
-           style="position:absolute; visibility: hidden; border: medium double red; color: red; background-color: white; text-align: center; width: 350px; ">
+           style="position:absolute; visibility: hidden; border: medium double red; color: red; background-color: white; text-align: left; width: 350px; ">
      </span>
 
      <div tal:attributes="id    mapper/mapper_id;
@@ -739,7 +735,7 @@
    <span tal:omit-tag=""
          tal:define="bd_data python:here.get_bd_data(storage_report, request['mapper_id'], request['bd_path']);
                      mapper python:here.get_mapper_data(storage_report, request['mapper_id'])">
-    <span tal:define="properties_span_id string:if seen in javascript error log -> FIXME">
+    <span tal:condition="bd_data">
      <div metal:use-macro="here/form-macros/macros/display-BD"/>
     </span>
    </span>
@@ -1198,11 +1194,7 @@
    input                  { background-image: none; }
    input.validation_error { border: medium double red; background-color: orange; }
    input.selected         { border: thin solid orange; }
-   input.form_button      { background-color: #fff;
-                            -moz-border-radius-topleft: 7px;
-                            -moz-border-radius-topright: 7px;
-                            -moz-border-radius-bottomleft: 7px;
-                            -moz-border-radius-bottomright: 7px; }
+   input.form_button      { background-color: #fff; }
  </style>
 
  <script language="javascript" type="text/javascript">
@@ -1940,7 +1932,7 @@
            <span tal:define="act_name  action/name;
                              act_msg   action/msg;
                              act_link  action/link"
-                 align="center">
+                 align="left">
             <span tal:condition="act_link">
              <input tal:define="act_link    python:act_link + '&storagename=' + storagename;
                                 funct       python:'window.location.assign(\'' + act_link + '\')'"
luci/storage/index_html +0 -6
@@ -79,8 +79,6 @@
   }
 }
 
-
-
 var span_to_replace = "";
 var replace_span_button_to_disable_id = "";
 
@@ -255,10 +253,6 @@
       </metal:block>
 
     </div>
-
-
-
-
 </body>
 </html>
 </metal:page>
luci/storage/mappings_macros +121 -130

254 lines not on this page · raw message

luci/storage/mappings_provider +5 -154

180 lines not on this page · raw message

luci/storage/portlet_cluconfig +44 -49

104 lines not on this page · raw message

luci/storage/portlet_cluconfig_macro +31 -31

71 lines not on this page · raw message

luci/storage/validate_html +30 -38

68 lines not on this page · raw message