FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-09-2008, 10:24 AM
"Rakesh Pandit"
 
Default help required regarding Bugzilla

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

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 04:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org