Mercurial > hg > bzconsole
changeset 31:f6513032ad28
add a blocks field
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 03 Dec 2012 14:56:10 -0800 |
parents | 07dc3f9de6bc |
children | e843b7f1f400 |
files | bzconsole/api.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bzconsole/api.py Mon May 14 15:43:30 2012 -0700 +++ b/bzconsole/api.py Mon Dec 03 14:56:10 2012 -0800 @@ -79,7 +79,7 @@ return self._request('/bug/%d' % number) def new(self, component, title, product=None, - version=None, description=None, whiteboard=(), cc=()): + version=None, description=None, whiteboard=(), cc=(), blocks=()): """file a new bug. username and password must be set""" # sanity check @@ -122,6 +122,11 @@ users.append(user[0]) request['cc'] = users + # add blocks, if given: + if blocks: + blocks = [int(i) for i in blocks] + request['blocks'] = blocks + # get the bug description if not description: description = tmpbuffer()