From: Andrew Cooper Date: Tue, 29 Mar 2011 18:52:52 +0000 (-0500) Subject: Add support for 'none' and '-' with --assigned like in `be assign` X-Git-Tag: 1.1.0~223^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be713557650c789b31a7d9a7525ea5a4e37f26d8;p=be.git Add support for 'none' and '-' with --assigned like in `be assign` --- 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: