[python-bugzilla] Stale reference to _query
Arun Babu Neelicattu
arun.neelicattu at gmail.com
Mon Jun 1 12:18:25 UTC 2015
Florian; think what you are looking for is at [1].
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.
Hope that helps.
[1]
https://github.com/python-bugzilla/python-bugzilla/blob/master/bugzilla/base.py#L1092
On Mon, Jun 1, 2015 at 7:27 PM Florian Weimer <fweimer at redhat.com> wrote:
> The docstring for Bugzilla.query
>
> def query(self, query):
> '''Query bugzilla and return a list of matching bugs.
> query must be a dict with fields like those in in
> querydata['fields'].
> Returns a list of Bug objects.
> Also see the _query() method for details about the underlying
> implementation.
> '''
> refers to _query, but this method is no longer very informative:
>
> def _query(self, query):
> # This is kinda redundant now, but various scripts call
> # _query with their own assembled dictionaries, so don't
> # drop this lest we needlessly break those users
> log.debug("Calling Bug.search with: %s", query)
> return self._proxy.Bug.search(query)
>
> So it's a bit difficult to figure out how to actually compose queries.
>
> --
> Florian Weimer / Red Hat Product Security
> _______________________________________________
> python-bugzilla mailing list
> python-bugzilla at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/python-bugzilla/attachments/20150601/548a0e56/attachment.html>
More information about the python-bugzilla
mailing list