summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2007-09-05 17:33:40 -0400
committerWill Woods <wwoods@redhat.com>2007-09-05 17:33:40 -0400
commit33df82dcefa061de95eacfbafc5542014181360c (patch)
treeb93517d8f228402d11f00fd9701c784c841794dc
parentc408ef232d7b4377ea92e38f605d564b3779d935 (diff)
downloadpython-bugzilla-33df82dcefa061de95eacfbafc5542014181360c.tar.gz
python-bugzilla-33df82dcefa061de95eacfbafc5542014181360c.tar.xz
python-bugzilla-33df82dcefa061de95eacfbafc5542014181360c.zip
explain how query() works better
-rw-r--r--bugzilla.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/bugzilla.py b/bugzilla.py
index 648ea87..62bd6bb 100644
--- a/bugzilla.py
+++ b/bugzilla.py
@@ -136,8 +136,20 @@ class Bugzilla(object):
def query(self,query):
'''Query bugzilla and return a list of matching bugs.
- query should be a dict that matches the fields in queryinfo's
- querydata['fields'].. or something.'''
+ query should be a dict that matches the fields in querydata['fields']..
+ or something.
+
+ Returns a dict like this: {'bugs':buglist,
+ 'displaycolumns':columnlist,
+ 'sql':querystring}
+
+ buglist is a list of dicts describing bugs. You can specify which
+ columns/keys will be listed in the bugs by setting 'column_list' in
+ the query; otherwise the default columns are used (see the list in
+ querydefaults['default_column_list']). The list of columns will be
+ in 'displaycolumns', and the SQL query used by this query will be in
+ 'sql'.
+ '''
return self._proxy.bugzilla.runQuery(query,self.user,self.password)
# TODO: createbug, attachfile, searchbugs, setstatus, closebug,