help required regarding Bugzilla

Rakesh Pandit rakesh.pandit at gmail.com
Sun Nov 9 11:24:22 UTC 2008


I was writing a script for generating weekly report from bugzilla
using python-bugzilla. Everything seems to work for old bugs but for
new bugs I get "Bug <no> does not exist. Most probably the there has
been an upgrade in bugzilla and I am not using correct url to connect.
Suggestions or help ?

Here is an example python session. 469811 is latest bug and 445027 is
an old bug.

>>> from bugzilla import Bugzilla
>>> bZilla = Bugzilla(url='https://partner-bugzilla.redhat.com/xmlrpc.cgi', username='<bugzilla_username>', password='<bugzilla_password>')
>>> history_bug1 = bugzilla._proxy.Bug.get_history({'ids':[469811]})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'bugzilla' is not defined
>>> history_bug1 = bZilla._proxy.Bug.get_history({'ids':[469811]})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/site-packages/bugzilla.py", line 713, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "/usr/lib/python2.5/xmlrpclib.py", line 790, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 101: 'Bug #469811 does not exist.'>
>>>
>>>
>>> history_bug1 = bZilla._proxy.Bug.get_history({'ids':[445027]})
>>>

Thanks,

-- 
rakesh




More information about the fedora-devel-list mailing list