diff options
author | Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com> | 2005-04-22 16:59:54 +0000 |
---|---|---|
committer | Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com> | 2005-04-22 16:59:54 +0000 |
commit | 1d1d267da9b6c65937ac5aff529d6f98a692bbd5 (patch) | |
tree | 6fb453982bb23fa16b0c96aa659f916c8e19787c /libbe | |
parent | 1c659c0af5e1e791dc11a5204705dbdec99a500a (diff) | |
download | bugseverywhere-1d1d267da9b6c65937ac5aff529d6f98a692bbd5.tar.gz |
Changed layout of the displaying bugs (list and show commands)
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/cmdutil.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index 31a542d..b6a2487 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -44,7 +44,7 @@ def get_bug(spec, bug_dir=None): raise UserError("No bug matches %s" % spec) return matches[0] -def bug_summary(bug, bugs, no_target=False): +def bug_summary(bug, bugs, no_target=False, shortlist=False): target = bug.target if target is None or no_target: target = "" @@ -54,9 +54,12 @@ def bug_summary(bug, bugs, no_target=False): assigned = "" else: assigned = " Assigned: %s" % bug.assigned - return "ID: %s Severity: %s%s%s Creator: %s \n%s\n" % \ + if shortlist == False: + return " ID: %s\n Severity: %s\n%s%s\n Creator: %s \n%s\n" % \ (unique_name(bug, bugs), bug.severity, assigned, target, bug.creator, bug.summary) + else: + return "%4s: %s\n" % (unique_name(bug, bugs), bug.summary) def iter_commands(): for name, module in plugin.iter_plugins("becommands"): |