[PATCH] use python-bugzilla in export-bugzilla.py

Jon Stanley jonstanley at gmail.com
Mon Oct 27 02:24:42 UTC 2008


Not quite sure where else to send this, so here goes :)

Attached is a patch to use python-bugzilla in export-bugzilla.py using
new methods that I taught it. I can't exactly be sure that the stuff
works, since partner-bugzilla doesn't have the updateperms call, and
the adduser call seems to require more permissions than I seem to have
on partner-bugzilla, but it seems to get there and work as best it can
:)

[jstanley at rugrat ~]$ python bztest.py
Bugzilla user: jonstanley at gmail.com
bugzilla password:
Traceback (most recent call last):
  File "bztest.py", line 9, in <module>
    server.adduser('jonstanley at gmail.com','Jon Stanley')
  File "/usr/lib/python2.5/site-packages/bugzilla/base.py", line 689, in adduser
    self._adduser(user,name)
  File "/usr/lib/python2.5/site-packages/bugzilla/rhbugzilla.py", line
334, in _adduser
    r = self._proxy.bugzilla.addUser(user, name, self.user)
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/site-packages/bugzilla/base.py", line 776, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "/usr/lib64/python2.5/xmlrpclib.py", line 790, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 410: 'Login Required'>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: export-bugzilla.patch
Type: text/x-patch
Size: 2178 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20081026/574c0365/attachment.bin 


More information about the infrastructure mailing list