Patch for Python 3 Support
by Ralph Bean
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
10 years, 10 months
Can't set multicall=False
by Jason L Tibbitts III
I'm doing some work with the Red Hat bugzilla and really need the
performance increase of calling getbugs with a big list of bugs instead
of letting it do the multicall. So I figure I'd just pass
multicall=False to the constructor, but it fails:
TypeError: __init__() got an unexpected keyword argument 'multicall'
I have limited understanding of python, but it seems that the kwargs get
passed all the way down to BugzillaBase.__init__ which bails if it gets
anything other than user, password, url or cookiefile.
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?
- J<
11 years, 6 months
Small typo in imports
by Björn Wingman
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
11 years, 6 months