l.b.s.bug : module documentation

Part of lp.bugs.subscribers

No module docstring
Function notify_bug_modified Handle bug change events.
Function notify_bug_comment_added Notify CC'd list that a message was added to this bug.
Function notify_bug_attachment_added Notify CC'd list that a new attachment has been added.
Function notify_bug_attachment_removed Notify that an attachment has been removed.
Function notify_bug_subscription_added Notify that a new bug subscription was added.
Function get_bug_delta Compute the delta from old_bug to new_bug.
Function add_bug_change_notifications Generate bug notifications and add them to the bug.
Function send_bug_details_to_new_bug_subscribers Send an email containing full bug details to new bug subscribers.
@block_implicit_flushes
def notify_bug_modified(bug, event):
Handle bug change events.
@block_implicit_flushes
def notify_bug_comment_added(bugmessage, event):
Notify CC'd list that a message was added to this bug.

bugmessage must be an IBugMessage. event must be an IObjectCreatedEvent. If bugmessage.bug is a duplicate the comment will also be sent to the dup target's subscribers.

@block_implicit_flushes
def notify_bug_attachment_added(bugattachment, event):
Notify CC'd list that a new attachment has been added.

bugattachment must be an IBugAttachment. event must be an IObjectCreatedEvent.

@block_implicit_flushes
def notify_bug_attachment_removed(bugattachment, event):
Notify that an attachment has been removed.
@block_implicit_flushes
def notify_bug_subscription_added(bug_subscription, event):
Notify that a new bug subscription was added.
def get_bug_delta(old_bug, new_bug, user):
Compute the delta from old_bug to new_bug.

old_bug and new_bug are IBug's. user is an IPerson. Returns an IBugDelta if there are changes, or None if there were no changes.

def add_bug_change_notifications(bug_delta, old_bugtask=None, new_subscribers=None):
Generate bug notifications and add them to the bug.
def send_bug_details_to_new_bug_subscribers(bug, previous_subscribers, current_subscribers, subscribed_by=None, event_creator=None):
Send an email containing full bug details to new bug subscribers.

This function is designed to handle situations where bugtasks get reassigned to new products or sourcepackages, and the new bug subscribers need to be notified of the bug.

A boolean is returned indicating whether any emails were sent.

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