l.b.a.b.BugTaskAttributeChange(AttributeChange) : class documentation

Part of lp.bugs.adapters.bugchange View In Hierarchy

Known subclasses: lp.bugs.adapters.bugchange.BugTaskBugWatchChange, lp.bugs.adapters.bugchange.BugTaskImportanceChange, lp.bugs.adapters.bugchange.BugTaskMilestoneChange, lp.bugs.adapters.bugchange.BugTaskStatusChange

Used to represent a change in a BugTask's attributes.

This is a base class. Implementations should define display_attribute and optionally override display_activity_label and/or display_notification_label.

display_attribute is the name of an attribute on the value objects that, when fetched, is usable when recording activity and sending notifications.

Method __init__ Undocumented
Method display_activity_label The label to use when recording activity.
Method display_notification_label The label to use for notifications.
Method getBugActivity Return the bug activity data for this change as a dict.
Method getBugNotification Return the bug notification text for this change.
def __init__(self, bug_task, when, person, what_changed, old_value, new_value):
Undocumented
@property
def display_activity_label(self):
The label to use when recording activity.

By default, it is the same as attribute that changed.

@property
def display_notification_label(self):
The label to use for notifications.

By default, it is the same as the attribute that changed, capitalized.

def getBugActivity(self):
Return the bug activity data for this change as a dict.

The whatchanged value of the dict refers to the BugTask's target so as to make it clear in which task the change was made.

def getBugNotification(self):
Return the bug notification text for this change.

The notification will refer to the BugTask's target so as to make it clear in which task the change was made.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.