Bug

class bugsy.Bug(bugzilla_url=None, token=None, **kwargs)

This represents a Bugzilla Bug

OS

Property for getting or setting the OS that the bug occured on

>>> bug.OS
"All"
>>> bug.OS = "Linux"
add_comment(comment)

Adds a comment to a bug. Once you have added it you will need to call put on the Bugsy object

>>> bug.add_comment("I like sausages")
>>> bugzilla.put(bug)
component

Property for getting the bug component

>>> bug.component
General
id

Property for getting the ID of a bug.

>>> bug.id
123456
platform

Property for getting the bug platform

>>> bug.platform
"ARM"
product

Property for getting the bug product

>>> bug.product
Core
resolution

Property for getting or setting the bug resolution

>>> bug.resolution = "FIXED"
>>> bug.resolution
"FIXED"
status

Property for getting or setting the bug status

>>> bug.status = "REOPENED"
>>> bug.status
"REOPENED"
summary

Property for getting and setting the bug summary

>>> bug.summary = "I like cheese"
>>> bug.summary
"I like cheese"
to_dict()

Return the raw dict that is used inside this object

update()

Update this object with the latest changes from Bugzilla

>>> bug.status
'NEW'
#Changes happen on Bugzilla
>>> bug.update()
>>> bug.status
'FIXED'
version

Property for getting the bug platform

>>> bug.version
"TRUNK"
class bugsy.BugException(msg)

If we try do something that is not allowed to a bug then this error is raised