[python-bugzilla] Getting more group info [was Re: Can't set multicall=False]

Toshio Kuratomi a.badger at gmail.com
Thu Oct 18 02:49:05 UTC 2012


On Tue, Oct 16, 2012 at 06:27:45PM -0400, Cole Robinson wrote:
> 
> On 08/16/2012 11:07 PM, Jason L Tibbitts III wrote:
> 
> > Also, I really need to get flags back from getbugs, which requires you
> > pass an extra_fields argument containing 'flags'.  Is it at all possible
> > to do this with python-bugzilla or should I just bypass it and make an
> > xmlrpc call myself?
> > 
> 
> Yes:
> 
> bz = Bugzilla(url="https://bugzilla.redhat.com/xmlrpc.cgi")
> fields_i_need = ["flags", "component", ...]
> buglist = bz.query(bz.build_query(component="python-bugzilla",
> include_fields=fields_i_need)
> 
> If you don't specify every field you need, you'll see a large slow down as we
> need to hit xmlrpc again. But the above is the fastest way of doing things.
> 
Is it possible to get better information about groups back from bugzilla
using the query interface?  I need to get information about whether a bug
is marked as private or secure which seems to be implemented via groups.
The standard information returned by query is a list that's either empty or
populated with ['redhat'] (even though there's multiple groups set).  if
I force a refresh of the specific bug then I have full gorup information for
that bug but that would be slow to do for, say, the list of kernel bugs.

I tried include_fields=['bug_id',  'groups']  to see if that would help but
it was the same.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/python-bugzilla/attachments/20121017/4645ae7e/attachment.sig>


More information about the python-bugzilla mailing list