[Piuparts-commits] rev 259 - piatti/home/piupartss/bin trunk
Holger Levsen
holger at alioth.debian.org
Mon Mar 16 13:30:03 UTC 2009
Author: holger
Date: 2009-03-16 13:30:03 +0000 (Mon, 16 Mar 2009)
New Revision: 259
Modified:
piatti/home/piupartss/bin/update-piuparts-setup
trunk/TODO
trunk/piuparts-report.py
Log:
activate piuparts-report cronjob, rename stats.html to index.html, update todo
Modified: piatti/home/piupartss/bin/update-piuparts-setup
===================================================================
--- piatti/home/piupartss/bin/update-piuparts-setup 2009-03-16 13:15:49 UTC (rev 258)
+++ piatti/home/piupartss/bin/update-piuparts-setup 2009-03-16 13:30:03 UTC (rev 259)
@@ -25,8 +25,7 @@
#
cd ~piupartsm
svn up
-#not yet
-#sudo -u piupartsm crontab ~piupartsm/crontab
+sudo -u piupartsm crontab ~piupartsm/crontab
#
# update configuration + htdocs
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2009-03-16 13:15:49 UTC (rev 258)
+++ trunk/TODO 2009-03-16 13:30:03 UTC (rev 259)
@@ -10,6 +10,8 @@
- upgrade-reports should have a list of available arch and list packages
only available on untested archs in a new state categorory.
+- the sections in the index page generated by piuparts-report.py are hardcoded atm..
+
- the templates used by update-reports.py should be taken from /etc/piuparts/templates/
and not be included in the python source
Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py 2009-03-16 13:15:49 UTC (rev 258)
+++ trunk/piuparts-report.py 2009-03-16 13:30:03 UTC (rev 259)
@@ -130,9 +130,9 @@
"""
-STATS_BODY_TEMPLATE = """
+SECTION_STATS_BODY_TEMPLATE = """
<div id="main">
-<h1>Statistics of packages</h1>
+<h1>Statistics of packages per section</h1>
<p>This page contains some statistics about packages piuparts is looking
at.</p>
%(table)s
@@ -150,7 +150,7 @@
<p>
The <a href="http://wiki.debian.org/piuparts">piuparts</a> setup is currently
- still being polished. Better reports and stats as well as PTS integration is
+ still being polished. Better reports and statistics as well as PTS integration is
planned. Join #debian-qa if you want to help.
</p>
@@ -363,7 +363,7 @@
st.read_packages_file(packages_file)
packages_file.close()
- logging.debug("Writing package statistics page")
+ logging.debug("Writing section statistics page")
table = "<table>\n"
for state in st.get_states():
dir_link = ""
@@ -378,8 +378,8 @@
table += "<tr> <th>Total</th> <th colspan=2>%d</th></tr>\n" % \
st.get_total_packages()
table += "</table>\n"
- write_file(os.path.join(self._output_directory, "stats.html"),
- HTML_HEADER + STATS_BODY_TEMPLATE % { "table": table } + HTML_FOOTER)
+ write_file(os.path.join(self._output_directory, "index.html"),
+ HTML_HEADER + SECTION_STATS_BODY_TEMPLATE % { "table": table } + HTML_FOOTER)
for state in st.get_states():
logging.debug("Writing page for %s" % state)
More information about the Piuparts-commits
mailing list