Bugsy
¶
-
class
bugsy.
Bugsy
(username=None, password=None, userid=None, cookie=None, bugzilla_url='https://bugzilla.mozilla.org/rest')[source]¶ Bugsy allows easy getting and putting of Bugzilla bugs
-
get
(bug_number)[source]¶ 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)[source]¶ 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)
-