Hello all,
I created a patch to update python-bugzilla to work on both python 2
and python 3. The unit tests all pass under both py2.7 and py3.2.
I have tested the login and query commands by hand on py2.6, py2.7,
and py3.2.
http://threebean.org/patches/python-bugzilla-Python3-support.patch
The patch is against the master branch (7ca8a60). If I should
recreate it against another branch, please let me know.
I'm also willing to update and maintain a spec file supporting both
versions if and when that time comes.
Cheers-
-Ralph
I found a typo in the imports of __init__.py. I hope this patch format
comes across ok.
/Björn
--- new/__init__.py 2012-06-18 11:39:01.232060575 +0200
+++ __init__.py 2012-06-18 11:27:30.383710970 +0200
@@ -9,7 +9,7 @@
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
# the full text of the license.
-from bugzilla3 import Bugzilla3, Bugzilla32, Bugzilla34, Bugzilla3
+from bugzilla3 import Bugzilla3, Bugzilla32, Bugzilla34, Bugzilla36
from bugzilla4 import Bugzilla4
from rhbugzilla import RHBugzilla, RHBugzilla3, RHBugzilla4
from nvlbugzilla import NovellBugzilla
On Mon, 2012-07-02 at 11:33 -0400, Martin Cermak wrote:
> Please, where do I find a documentation that will help me construct
> queries like this? Basically I need RH bugzilla's xmlrpc reference
> guide (ideally with some examples). Can you recommend me some
> reading?
The API reference is here:
https://partner-bugzilla.redhat.com/docs/en/html/api/
or
https://bugzilla.redhat.com/docs/en/html/api/
As for constructing queries, just use the Advanced Query web UI and look
at the resulting query string/URL; the query parameters are the same as
whatever the web UI passes to the query CGI script.
Hope that helps,
-w
P.S. I'm CC'ing the (newish) python-bugzilla mailing list so there's a
permanent record of this advice - plus others might be able to help if
you have more specific questions.