# HG changeset patch # User Jeff Hammel # Date 1291680261 28800 # Node ID 0c5449063772ca23b8baabc0f9d38d5a47d7feaa # Parent dd72e20b9a1f9dd286be3e8e4f9b8df99655a693 (try to) conform to what bugzilla expects, https://bugzilla.mozilla.org/show_bug.cgi?id=615140 diff -r dd72e20b9a1f -r 0c5449063772 bzconsole/main.py --- a/bzconsole/main.py Sat Nov 27 00:52:30 2010 -0800 +++ b/bzconsole/main.py Mon Dec 06 16:04:21 2010 -0800 @@ -78,8 +78,8 @@ # create the needed data structure request = dict(product=product, component=component, summary=title, version=version, - comments=[description], - op_sys='Any', platform='Any',) + comments=self._comment(description), + op_sys='All', platform='All',) # POST the request try: @@ -96,7 +96,6 @@ if not self.refresh: try: self._configuration = json.loads(file(config_cache).read()) - except: pass if not getattr(self, '_configuration', None): @@ -109,6 +108,10 @@ ### internal methods + def _comment(self, text): + retval = {'is_private': false, 'text': text} + return retval + def _request(self, path, data=None): url = self.server + path query = {}