[Piuparts-commits] rev 287 - piatti/org/piuparts.debian.org/htdocs trunk

Holger Levsen holger at alioth.debian.org
Thu Mar 19 13:51:23 UTC 2009


Author: holger
Date: 2009-03-19 13:51:23 +0000 (Thu, 19 Mar 2009)
New Revision: 287

Modified:
   piatti/org/piuparts.debian.org/htdocs/style.css
   trunk/piuparts-report.py
Log:
fix syntax error

Modified: piatti/org/piuparts.debian.org/htdocs/style.css
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/style.css	2009-03-19 13:25:35 UTC (rev 286)
+++ piatti/org/piuparts.debian.org/htdocs/style.css	2009-03-19 13:51:23 UTC (rev 287)
@@ -2,8 +2,8 @@
         border: none;
         padding-top: 10px;
         padding-bottom: 10px;
-        padding-left: 15px;
-        padding-right: 15px;
+        padding-left: 10px;
+        padding-right: 10px;
         vertical-align: top;
         background-color: #ddd;
 }
@@ -50,6 +50,7 @@
  border: 0px solid #000;
  border-collapse: collapse;
  margin-top: 0px;
+ margin-bottom: 5px;
  padding-top: 0px;
 }
 
@@ -77,7 +78,6 @@
  border: 0px solid #000;
  border-collapse: separate;
  border-spacing: 1px;
- margin: 5px;
 }
 
 h1 {
@@ -235,11 +235,7 @@
     background-color: white;
     color: black;
 }
-table.lefttable + table.lefttable {
-    margin-top: 1em;
-}
 td.containercell {
-    padding: 10px;
     background-color: #ddd;
 }
 td.titlecell { 

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-03-19 13:25:35 UTC (rev 286)
+++ trunk/piuparts-report.py	2009-03-19 13:51:23 UTC (rev 287)
@@ -45,6 +45,7 @@
   <link type="text/css" rel="stylesheet" href="/style.css">
   <link rel="shortcut icon" href="/favicon.ico">
  </head>
+
  <body>
  <div id="header">
    <h1 class="header">
@@ -54,7 +55,6 @@
      <img src="http://piuparts.debian.org/images/debian.png" border="0" hspace="0" vspace="0" alt="Debian Project"></a>
     Quality Assurance
    </h1>
-  <br>
   <table class="reddy" width="97%">
    <tr>
     <td class="reddy">
@@ -374,11 +374,9 @@
         lines.append(line)
 
     f = file(filename, "w")
-    f.write(HTML_HEADER % 
-            {
+    f.write(HTML_HEADER % {
                 "time": time.strftime("%Y-%m-%d %H:%M %Z"),
-            } + LOG_LIST_BODY_TEMPLATE % 
-            {
+            } + LOG_LIST_BODY_TEMPLATE % {
                 "title": html_protect(title),
                 "preface": preface,
                 "loglist": "".join(lines),
@@ -497,8 +495,7 @@
                               dir_link)
             tablerows += "<tr class=\"normalrow\"> <td class=\"labelcell\">Total</td> <td class=\"labelcell\" colspan=\"2\">%d</td></tr>\n" % \
                          st.get_total_packages()
-            write_file(os.path.join(self._output_directory, "index.html"), HTML_HEADER %
-                                                                    {
+            write_file(os.path.join(self._output_directory, "index.html"), HTML_HEADER % {
                                                                         "time": time.strftime("%Y-%m-%d %H:%M %Z"),
                                                                     } + SECTION_STATS_BODY_TEMPLATE % {
                                                                         "packages-url": html_protect(self._config["packages-url"]), 
@@ -520,8 +517,7 @@
                         list += "</ul>\n"
                     list += "</li>\n"
                 list += "</ul>\n"
-                write_file(os.path.join(self._output_directory, "state-%s.html" % state), HTML_HEADER % 
-                                        { 
+                write_file(os.path.join(self._output_directory, "state-%s.html" % state), HTML_HEADER % { 
                                          "time": time.strftime("%Y-%m-%d %H:%M %Z"),
                                         } + STATE_BODY_TEMPLATE % {
                                          "state": html_protect(state),
@@ -553,8 +549,7 @@
         sections.append(section)
 
     logging.debug("Writing index page")
-    write_file(report_config["index-page"], HTML_HEADER %
-                                                         {
+    write_file(report_config["index-page"], HTML_HEADER % {
                                                           "time": time.strftime("%Y-%m-%d %H:%M %Z"),
                                                          } + INDEX_BODY_TEMPLATE + HTML_FOOTER)
 




More information about the Piuparts-commits mailing list