view web/status-by-revision.html @ 258:bb98e728f25b

Allow default values for individual options to be passed to read_config_section. The default value can now be passed as a third item in a tuple used in the section description passed to read_config_section. The predefined option descriptions have been updated to use this new mechanism and the global defaults variable is not needed anymore. Also, indivdual PackageTrack classes can now use this mechanism to specify defaults for their additional configuration options.
author Bernhard Herzog <bh@intevation.de>
date Fri, 17 Apr 2009 18:48:58 +0000
parents a05cbf80dec9
children 9d8de2984de1
line wrap: on
line source
<html xmlns:py="http://genshi.edgewall.org/">
  <head>
    <title>Tree Packager Status</title>
    <style type="text/css">
      .statustable { background:#F4F4F4; }
      .statustablehead { background:#E0E0E0; }
      .statusheading { font-weight:bold; }
      .finished { background:#C0FFC0; }
      .inprogress { background:#FFFFC0; }
      .error { background:#FFC0C0; }
      td { padding:5px; background:#FFFFFF}
    </style>
  </head>
  <body>
    <h1>Tree Packager Status</h1>

    <table class="statustable">
      <tr>
	<th class="statustablehead">Revision</th>
	<py:for each="track in report.revisions.tracks">
	  <th class="statustablehead">${track.name}</th>
	</py:for>
      </tr>

      <py:for each="row in report.revisions.sorted_by_revision">
	<tr>
	  <td>${row[0][0]}</td>
	  <py:for each="col in row[1]">
	    <py:choose>
	      <py:when test="col">
		<td class="${col.status.cls}">
		  <span class="statusheading">${col.status.desc}</span><br/>
		  Start: ${col.status.start}<br/>
		  Stop: ${col.status.stop}<br/>
		  <py:for each="title, basename in col.log_files">
		    <a href="${col.name}/${col.revno}-${col.rulesrev}/${basename}">${title}</a>
		    <br/>
		  </py:for>
		</td>
	      </py:when>
	      <py:otherwise>
		<td></td>
	      </py:otherwise>
	    </py:choose>
	  </py:for>

	</tr>
      </py:for>
    </table>

    <hr/>
    report generated at ${report.date},
    powered by <a href="http://treepkg.wald.intevation.org/">Tree Packager</a>

  </body>
</html>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)