[Piuparts-commits] rev 425 - in trunk: . piupartslib

Holger Levsen holger at alioth.debian.org
Sat May 30 10:53:52 UTC 2009


Author: holger
Date: 2009-05-30 10:53:52 +0000 (Sat, 30 May 2009)
New Revision: 425

Modified:
   trunk/piuparts-report.py
   trunk/piupartslib/packagesdb.py
Log:
scale correctly

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-05-29 22:50:17 UTC (rev 424)
+++ trunk/piuparts-report.py	2009-05-30 10:53:52 UTC (rev 425)
@@ -786,7 +786,7 @@
         r('bitmap(file="'+pngfile+'",type="png16m",width=16,height=9,pointsize=10,res=100)')
         r('barplot(t(v),col = 1:13, main="Packages per state in '+self._config.section+' (past 2 months)", xlab="", ylab="Number of packages",space=0.1,border=0)')
         r('legend(x="bottom",legend=colnames(t), ncol=2,fill=1:13,xjust=0.5,yjust=0,bty="n")')
-        return "<tr class=\"normalrow\"> <td class=\"contentcell2\" colspan=\"3\"><a href=\"%s\"><img src=\"/%s/%s\" height=\"450\" width=\"600\" alt=\"Package states in the last 2 months\"></a></td></tr>\n" % ("bimonthly-states.png", self._config.section, "bimonthly-states.png")
+        return "<tr class=\"normalrow\"> <td class=\"contentcell2\" colspan=\"3\"><a href=\"%s\"><img src=\"/%s/%s\" height=\"450\" width=\"800\" alt=\"Package states in the last 2 months\"></a></td></tr>\n" % ("bimonthly-states.png", self._config.section, "bimonthly-states.png")
 
     def write_section_index_page(self,dirs,total_packages):
         tablerows = ""

Modified: trunk/piupartslib/packagesdb.py
===================================================================
--- trunk/piupartslib/packagesdb.py	2009-05-29 22:50:17 UTC (rev 424)
+++ trunk/piupartslib/packagesdb.py	2009-05-30 10:53:52 UTC (rev 425)
@@ -47,7 +47,7 @@
     return headers
  
 def unique (s):
-    # taken from http://code.activestate.com/recipes/52560/
+    # taken from http://code.activestate.com/recipes/52560/ - thanks to Tim Peters
     n = len(s)
     if n == 0:
       return []  




More information about the Piuparts-commits mailing list