Bug

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

This represents a Bugzilla Bug

OS

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

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

Adds a comment to a bug. If a bug does not have a bug ID then you need call put on the Bugsy class.

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

If it does have a bug id then this will do a post to the server

>>> bug.add_comment("I like eggs too")
component

Property for getting the bug component

>>> bug.component
General
get_comments()

Obtain comments for this bug.

Returns a list of Comment instances.

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"
status

Property for getting or setting the bug status

>>> bug.status
"REOPENED"
summary

Property for getting and setting the bug summary

>>> 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