aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/new.py
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper@hkcreations.org>2011-03-29 13:52:52 -0500
committerAndrew Cooper <andrew.cooper@hkcreations.org>2011-03-29 13:52:52 -0500
commitbe713557650c789b31a7d9a7525ea5a4e37f26d8 (patch)
tree1a503f03648692bf30d6e3e32937170bedcd3710 /libbe/command/new.py
parent722cc27b216b20a0071d445a414d72d88aed040a (diff)
downloadbugseverywhere-be713557650c789b31a7d9a7525ea5a4e37f26d8.tar.gz
Add support for 'none' and '-' with --assigned like in `be assign`
Diffstat (limited to 'libbe/command/new.py')
-rw-r--r--libbe/command/new.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/libbe/command/new.py b/libbe/command/new.py
index 7a5c51d..849eafb 100644
--- a/libbe/command/new.py
+++ b/libbe/command/new.py
@@ -109,7 +109,12 @@ class New (libbe.command.Command):
else:
bug.reporter = bug.creator
if params['assigned'] != None:
- bug.assigned = params['assigned']
+ assigned = params['assigned']
+ if assigned == 'none':
+ assigned = None
+ elif assigned == '-':
+ assigned = self._get_user_id()
+ bug.assigned = assigned
if params['status'] != None:
bug.status = params['status']
if params['severity'] != None: