changeset 14:0c5449063772

(try to) conform to what bugzilla expects, https://bugzilla.mozilla.org/show_bug.cgi?id=615140
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 06 Dec 2010 16:04:21 -0800
parents dd72e20b9a1f
children 839b5f852c9d
files bzconsole/main.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}