Il giorno Sat, 13 Oct 2007 11:06:39 +0200 David Paleino <d.paleino@gmail.com> ha scritto: > > ... > For further information, the page on [1] is currently generated from the same template [2] and this code: ---8<--- def renderTemplate(node, package, bugs): node.package.content = package node.count.content = `len(bugs)` t = datetime.now() node.date.content = formatdate(time.mktime(t.timetuple())) bugs.sort() node.packagelist.repeat(renderBugs, bugs) ids = {} def renderBugs(node, bugs): name, id = bugs if name not in ids: ids[name] = [] ids[name].append(id) node.name.content = name node.numbers.repeat(renderBugNumbers, ids[name]) def renderBugNumbers(node, number): url = "bug_details.php?id="+`number` node.id.atts["href"] = url node.id.content = `number` node.summary.atts["href"] = url node.summary.content = getSubject(number) ---8<--- I really hope you can help me / us. Thank you, David [1] http://debian-med.alioth.debian.org/bugs.php [2] http://debian-med.alioth.debian.org/bugs.tmpl -- . ''`. Debian maintainer | http://snipurl.com/qa_page/ : :' : Linuxer #334216 | http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://www.debianizzati.org/ `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
Attachment:
signature.asc
Description: PGP signature