<div dir="ltr">Florian; think what you are looking for is at [1].<div><br></div><div>The BugZilla XMLRPC API might be a good reference too, if you'd like to compose a query with fields that python-bugzilla does not explicitly support.</div><div><br></div><div>Hope that helps.<br><br><div>[1] <a href="https://github.com/python-bugzilla/python-bugzilla/blob/master/bugzilla/base.py#L1092">https://github.com/python-bugzilla/python-bugzilla/blob/master/bugzilla/base.py#L1092</a></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 1, 2015 at 7:27 PM Florian Weimer <<a href="mailto:fweimer@redhat.com">fweimer@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The docstring for Bugzilla.query<br>
<br>
def query(self, query):<br>
'''Query bugzilla and return a list of matching bugs.<br>
query must be a dict with fields like those in in<br>
querydata['fields'].<br>
Returns a list of Bug objects.<br>
Also see the _query() method for details about the underlying<br>
implementation.<br>
'''<br>
refers to _query, but this method is no longer very informative:<br>
<br>
def _query(self, query):<br>
# This is kinda redundant now, but various scripts call<br>
# _query with their own assembled dictionaries, so don't<br>
# drop this lest we needlessly break those users<br>
log.debug("Calling Bug.search with: %s", query)<br>
return self._proxy.Bug.search(query)<br>
<br>
So it's a bit difficult to figure out how to actually compose queries.<br>
<br>
--<br>
Florian Weimer / Red Hat Product Security<br>
_______________________________________________<br>
python-bugzilla mailing list<br>
<a href="mailto:python-bugzilla@lists.fedorahosted.org" target="_blank">python-bugzilla@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla</a><br>
</blockquote></div>