[python-bugzilla] RFE -- Have CLI client output a query URL
Cole Robinson
crobinso at redhat.com
Fri Aug 16 15:49:53 UTC 2013
On 08/16/2013 09:33 AM, Paul W. Frields wrote:
> It would be very useful to be able to input a query using the CLI
> client, and have it pop out a standard query.cgi URL that I could copy
> to other people (either as-is, or after running through a URL
> shortener).
>
> I think this should be possible with something like
> urllib.urlencode(), right?
>
It would be doable, but there's one hitch: the URL query field names don't
always match the XMLRPC field names. For example, to query all Fedora bugs in
the NEW state, XMLRPC wants something like
{"product": "Fedora", "status": "NEW"}
But the URL needs to be like
query.cfg?product=Fedora,bug_status="NEW"
Notice status vs. bug_status. And I just verified that using 'status' doesn't
work in the URL. So you'd need to play with the web search UI to tease out all
those differences at least.
That aside, I think it's a useful idea.
- Cole
More information about the python-bugzilla
mailing list