lpltk.bug.Bug : API documentation

# l.b.Bug(object) : class documentation

Part of lpltk.bug View In Hierarchy

No class docstring

Method | __init__ | Undocumented
Method | date_created | Undocumented
Method | age | Age of bug in days
Method | milestone_found | Undocumented
Method | date_last_updated | Undocumented
Method | age_last_updated | Age of last update to bug in days
Method | date_last_message | Undocumented
Method | age_last_message | Age of last comment to bug in days
Method | private 0 | Undocumented
Method | private | Undocumented
Method | security_related 0 | Undocumented
Method | security_related | Undocumented
Method | title 0 | A one-line summary of the problem being described by the bug.
Method | title | Undocumented
Method | description 0 | As complete as possible description of the bug/issue being reported as a bug.
Method | description | Undocumented
Method | tags | Undocumented
Method | releases | Undocumented
Method | owner | Undocumented
Method | owner_name | Undocumented
Method | attachments | Undocumented
Method | properties | Returns dict of key: value pairs found in the bug description
Method | messages | Undocumented
Method | messages_count | Undocumented
Method | tasks | Undocumented
Method | add_comment | Add a new comment to an existing bug.
Method | nominations | Undocumented
Method | add_nomination | Undocumented
Method | activity | Undocumented
Method | duplicate_of | Undocumented
Method | duplicates_count | Undocumented
Method | subscriptions_count | Undocumented
Method | heat | Undocumented
Method | date_latest_patch_uploaded | Undocumented
Method | has_patch | Undocumented
Method | is_expirable | Undocumented
Method | users_affected_count | Undocumented
Method | users_unaffected_count | Undocumented
Method | gravity | An implementation of the "gravity" value as defined at:
Method | to_dict | Converts the bug to a serializable dict.

def __init__(self, service, bug_number, commit_changes=True):
Undocumented
@property
def date_created(self):
Undocumented
def age(self):
Age of bug in days

@property
def milestone_found(self):
Undocumented
@property
def date_last_updated(self):
Undocumented
def age_last_updated(self):
Age of last update to bug in days

@property
def date_last_message(self):
Undocumented
def age_last_message(self):
Age of last comment to bug in days

@property
def private 0(self):
Undocumented
@private.setter
def private(self, value):
Undocumented
@property
def security_related 0(self):
Undocumented
@security_related.setter
def security_related(self, value):
Undocumented
@property
def title 0(self):
A one-line summary of the problem being described by the bug.

@title.setter
def title(self, value):
Undocumented
@property
def description 0(self):
As complete as possible description of the bug/issue being reported as a bug.

@description.setter
def description(self, value):
Undocumented
@property
def tags(self):
Undocumented
@property
def releases(self):
Undocumented
@property
def owner(self):
Undocumented
@property
def owner_name(self):
Undocumented
@property
def attachments(self):
Undocumented
@property
def properties(self):
Returns dict of key: value pairs found in the bug description

This parses the bug report description into a more programmatically digestable dictionary form.

@property
def messages(self):
Undocumented
@property
def messages_count(self):
Undocumented
@property
def tasks(self):
Undocumented
def add_comment(self, content, subject=None, avoid_dupes=False):
Add a new comment to an existing bug.

This is the equivalent of newMessage. If no subject is provided, it will craft one using the bug title. If avoid_dupes is set, the routine will check to see if this comment has already been posted, to avoid accidentally spamming; the routine will return False in this case.

@property
def nominations(self):
Undocumented
def add_nomination(self, series):
Undocumented
@property
def activity(self):
Undocumented
@property
def duplicate_of(self):
Undocumented
@property
def duplicates_count(self):
Undocumented
@property
def subscriptions_count(self):
Undocumented
@property
def heat(self):
Undocumented
@property
def date_latest_patch_uploaded(self):
Undocumented
def has_patch(self):
Undocumented
def is_expirable(self, days_old=None):
Undocumented
@property
def users_affected_count(self):
Undocumented
@property
def users_unaffected_count(self):
Undocumented
def gravity(self):
An implementation of the "gravity" value as defined at: https://wiki.canonical.com/UbuntuEngineering/DefectAnalysts/GravityHeuristics

def to_dict(self, quick=False):
Converts the bug to a serializable dict.

Specify quick=True to skip data which can be more expensive to look up. Execution should be about twice as fast.