Bugsy

class bugsy.Bugsy(username=None, password=None, bugzilla_url='https://bugzilla.mozilla.org/rest')

Bugsy allows easy getting and putting of Bugzilla bugs

get(bug_number)

Get a bug from Bugzilla. If there is a login token created during object initialisation it will be part of the query string passed to Bugzilla

Parameters:bug_number – Bug Number that will be searched. If found will return a Bug object.
>>> bugzilla = Bugsy()
>>> bug = bugzilla.get(123456)
put(bug)

This method allows you to create or update a bug on Bugzilla. You will have had to pass in a valid username and password to the object initialisation and recieved back a token.

Parameters:bug – A Bug object either created by hand or by using get()

If there is no valid token then a BugsyException will be raised. If the object passed in is not a Bug then a BugsyException will be raised.

>>> bugzilla = Bugsy()
>>> bug = bugzilla.get(123456)
>>> bug.summary = "I like cheese and sausages"
>>> bugzilla.put(bug)
search_for

The search_for property.

class bugsy.BugsyException(msg)

If while interacting with Bugzilla and we try do something that is not supported this error will be raised.

class bugsy.LoginException(msg)

If a username and password are passed in but we don’t receive a token then this error will be raised.