[Cdd-commits] r1143 - cdd/trunk/webtools
CDD Subversion Commit
noreply at alioth.debian.org
Sun Oct 26 07:32:02 UTC 2008
Author: tille
Date: Sun Oct 26 07:32:01 2008
New Revision: 1143
Modified:
cdd/trunk/webtools/bugs.py
Log:
Fix bug statistics
Modified: cdd/trunk/webtools/bugs.py
==============================================================================
--- cdd/trunk/webtools/bugs.py (original)
+++ cdd/trunk/webtools/bugs.py Sun Oct 26 07:32:01 2008
@@ -31,7 +31,6 @@
self.done = [] # closed bugs
self.ndone = 0
- print >>stderr, "DEBUG: src:", pkgname, "(%s)" % (pkgname)
bugs = bts.query('src:' + pkgname)
if bugs:
for bug in bugs:
@@ -85,7 +84,7 @@
data['taskskeys'] = cdeps.metapackagekeys
data['lang'] = 'en'
data['othertasks'] = _("Links to other tasks")
-data['indexlink'] = _("Index of all tasks")
+data['taskslink'] = _("Tasks")
data['updatetimestamp'] = _('Last update:') + ' ' + formatdate(time.mktime(t.timetuple()))
if data['advertising'] != None:
# If data['advertising'] is enclosed in _() gettext tries to ask for translations of 'advertising'
@@ -125,8 +124,8 @@
for task in packages.keys():
data['task'] = task
data['pkgbugs'] = allbugs[task]
- data['nbugs'] = nbugs[task]
- data['ndone'] = ndone[task]
+ data['nbugs'] = nbugs
+ data['ndone'] = ndone
template = loader.load('bugs.xhtml')
f = open(outputdir + '/' + task + '.html', 'w')
print >> f, template.generate(**data).render('xhtml')
More information about the Cdd-commits
mailing list