diff options
author | Andrew Cooper <andrew.cooper@hkcreations.org> | 2011-03-29 13:52:52 -0500 |
---|---|---|
committer | Andrew Cooper <andrew.cooper@hkcreations.org> | 2011-03-29 13:52:52 -0500 |
commit | be713557650c789b31a7d9a7525ea5a4e37f26d8 (patch) | |
tree | 1a503f03648692bf30d6e3e32937170bedcd3710 /libbe/command | |
parent | 722cc27b216b20a0071d445a414d72d88aed040a (diff) | |
download | bugseverywhere-be713557650c789b31a7d9a7525ea5a4e37f26d8.tar.gz |
Add support for 'none' and '-' with --assigned like in `be assign`
Diffstat (limited to 'libbe/command')
-rw-r--r-- | libbe/command/new.py | 7 |
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: |