[Piuparts-commits] rev 338 - trunk

Holger Levsen holger at alioth.debian.org
Sun Apr 12 22:28:14 UTC 2009


Author: holger
Date: 2009-04-12 22:28:14 +0000 (Sun, 12 Apr 2009)
New Revision: 338

Modified:
   trunk/piuparts-report.py
Log:
improve package view

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-04-12 21:57:15 UTC (rev 337)
+++ trunk/piuparts-report.py	2009-04-12 22:28:14 UTC (rev 338)
@@ -285,9 +285,7 @@
      </td>
     </tr>
     <tr class="normalrow">
-     <td class="contentcell2" colspan="3">
-      $source
-     </td>
+     $sourcedata
     </tr>
     <tr class="titlerow">
      <td class="titlecell" colspan="3">
@@ -671,16 +669,12 @@
                 maintainer = self._source_db.get_control_header(source, "Maintainer")
                 success = True
                 failed = False
+                sourcedata = "<td class=\"contentcell2\">%s</td><td class=\"contentcell2\" colspan=\"2\">%s</td>" % (html_protect(source), html_protect(maintainer))
                 binaryrows = ""
                 for binary in binaries.split(", "):
                   state = self._binary_db.state_by_name(binary)
                   version = self._binary_db.get_control_header(binary, "Version")
-                  binaryrows += "
-                                 <tr class=\"normalrow\">
-                                  <td class=\"contentcell2\">%s</td>
-                                  <td class=\"contentcell2\">%s</td>
-                                  <td class=\"contentcell2\">%s</td>
-                                 </tr>" % (binary, state, version)
+                  binaryrows += "<tr class=\"normalrow\"><td class=\"contentcell2\">%s</td><td class=\"contentcell2\">%s</td><td class=\"contentcell2\">%s</td></tr>" % (binary, state, version)
                   if state != "successfully-tested":
                     success = False
                   if state == "failed-testing":
@@ -698,7 +692,8 @@
                 f.write(htmlpage.safe_substitute( {
                     "section_navigation": create_section_navigation(self._section_names),
                     "time": time.strftime("%Y-%m-%d %H:%M %Z"),
-                    "source": html_protect(source+", "+maintainer),
+                    "package": html_protect(source),
+                    "sourcedata": sourcedata,
                     "section": html_protect(self._config.section),
                     "binaryrows": binaryrows,
                     }))




More information about the Piuparts-commits mailing list