aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-10-28 13:29:16 -0400
committerW. Trevor King <wking@drexel.edu>2010-10-28 13:29:16 -0400
commitaa1230e03b3859bbcf22d710a2b25a68b691e740 (patch)
tree7a9805b2d3ffeaae50a96fdea8f4e02bc6aa38f9 /libbe/command
parent3ad4de1cfa8b28974b2e0c3a4626315c4aea14ef (diff)
downloadbugseverywhere-aa1230e03b3859bbcf22d710a2b25a68b691e740.tar.gz
Fixed `list --sort ...` bug.
Diffstat (limited to 'libbe/command')
-rw-r--r--libbe/command/list.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/command/list.py b/libbe/command/list.py
index 48606f6..3eb1932 100644
--- a/libbe/command/list.py
+++ b/libbe/command/list.py
@@ -92,6 +92,8 @@ class List (libbe.command.Command):
>>> ret = ui.run(cmd, {'status':'closed'})
abc/b:cm: Bug B
>>> ret = ui.run(cmd, {'status':'all', 'sort':'time'})
+ abc/a:om: Bug A
+ abc/b:cm: Bug B
>>> bd.storage.writeable
True
>>> ui.cleanup()
@@ -190,7 +192,7 @@ class List (libbe.command.Command):
def _parse_params(self, bugdir, params):
cmp_list = []
if params['sort'] != None:
- for cmp in params['sort'].sort_by.split(','):
+ for cmp in params['sort'].split(','):
if cmp not in AVAILABLE_CMPS:
raise libbe.command.UserError(
'Invalid sort on "%s".\nValid sorts:\n %s'