diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-09 18:25:15 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-09 18:25:15 +0000 |
commit | 5da244c60c040f23455c1d18107d1abb5b2140c0 (patch) | |
tree | 17c2001fd8fa950eeb4963fbecfffe1a28799463 /be | |
parent | b2b03a3d1f06e7dba218eccbac0d045cad0a276e (diff) | |
download | bugseverywhere-5da244c60c040f23455c1d18107d1abb5b2140c0.tar.gz |
Added support for severity, creator, target
Diffstat (limited to 'be')
-rwxr-xr-x | be | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -12,11 +12,27 @@ import sys import os def list_bugs(args): - bugs = [b for b in tree_root(os.getcwd()).list() if b.active] + active = True + status = ("minor", "serious", "critical", "fatal") + def filter(bug): + if active is not None: + if bug.active != active: + return False + if bug.status not in status: + return False + return True + + bugs = [b for b in tree_root(os.getcwd()).list() ] if len(bugs) == 0: print "No matching bugs found" for bug in bugs: - print "%s: %s" % (unique_name(bug, bugs), bug.summary) + target = bug.target + if target is None: + target = "" + else: + target = " target: %s" % target + print "id: %s severity: %s%s\n%s\n" % (unique_name(bug, bugs), + bug.severity, target, bug.summary) |