comparison bin/reportstatus.py @ 145:123e9a5f31fa

Rework treepkg/report.py to prepare for other report types. Adapt reportstatus.py and web-status.html.
author Bernhard Herzog <bh@intevation.de>
date Thu, 05 Jun 2008 10:36:10 +0000
parents 9a602d8eaa60
children cfeb0251055b
comparison
equal deleted inserted replaced
144:dd54ef8a9244 145:123e9a5f31fa
1 #! /usr/bin/python2.4 1 #! /usr/bin/python2.4
2 # Copyright (C) 2007 by Intevation GmbH 2 # Copyright (C) 2007, 2008 by Intevation GmbH
3 # Authors: 3 # Authors:
4 # Bernhard Herzog <bh@intevation.de> 4 # Bernhard Herzog <bh@intevation.de>
5 # 5 #
6 # This program is free software under the GPL (>=v2) 6 # This program is free software under the GPL (>=v2)
7 # Read the file COPYING coming with the software for details. 7 # Read the file COPYING coming with the software for details.
20 return create_parser().parse_args() 20 return create_parser().parse_args()
21 21
22 22
23 def report_text(group): 23 def report_text(group):
24 report = prepare_report(group) 24 report = prepare_report(group)
25 for revno, row in report.revisions: 25 for revno, row in report.revisions.sorted_by_revision():
26 for col in row: 26 for col in row:
27 if col: 27 if col:
28 print "%s %s: %s" % (col.name, revno, col.status.desc) 28 print "%s %s: %s" % (col.name, revno, col.status.desc)
29 if col.status.start: 29 if col.status.start:
30 print " Start:", col.status.start 30 print " Start:", col.status.start
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)