# HG changeset patch # User Jeff Hammel # Date 1292634495 28800 # Node ID 2eaf17cb07f66f443a47f46cda2647a5f803d480 # Parent 3b7f4104cd72aa0b762da035a367dfcc4ee4f490 add whiteboard to new entry diff -r 3b7f4104cd72 -r 2eaf17cb07f6 bzconsole/api.py --- a/bzconsole/api.py Thu Dec 09 15:33:27 2010 -0800 +++ b/bzconsole/api.py Fri Dec 17 17:08:15 2010 -0800 @@ -69,7 +69,7 @@ return retval, dupe def new(self, component, title, product=None, - version=None, description=None): + version=None, description=None, whiteboard=None): """file a new bug. username and password must be set""" # sanity check @@ -99,6 +99,13 @@ comments=[self._comment(description)], op_sys='All', platform='All',) + # add whiteboard, if given + if whiteboard: + if isinstance(whiteboard, basestring): + whiteboard=[whiteboard] + whiteboard = ''.join(['[%s]' % i for i in whiteboard]) + request['whiteboard'] = whiteboard + # POST the request try: results = self._request('/bug', request) diff -r 3b7f4104cd72 -r 2eaf17cb07f6 setup.py --- a/setup.py Thu Dec 09 15:33:27 2010 -0800 +++ b/setup.py Fri Dec 17 17:08:15 2010 -0800 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os -version = '0.1' +version = '0.1.1' readme = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.txt')