l.b.i.b.IBugNotificationSet(Interface) : interface documentation

Part of lp.bugs.interfaces.bugnotification View In Hierarchy

The set of bug notifications.
Method getNotificationsToSend Returns the notifications pending to be sent.
Method getDeferredNotifications Returns the deferred notifications.
Method addNotification Create a new BugNotification.
Method getRecipientFilterData Get non-muted recipients mapped to sources & filter descriptions.
def getNotificationsToSend():
Returns the notifications pending to be sent.
def getDeferredNotifications():
Returns the deferred notifications.

A deferred noticiation is one that is pending but has no recipients.

def addNotification(self, bug, is_comment, message, recipients, activity):
Create a new BugNotification.

Create a new BugNotification object and the corresponding BugNotificationRecipient objects.

def getRecipientFilterData(bug, recipient_to_sources, notifications):
Get non-muted recipients mapped to sources & filter descriptions.

The dict of recipients may have fewer recipients than were provided if those users muted all of the subscription filters that caused them to be sent.

ParametersbugA bug we are collecting filter data for.
recipient_to_sourcesA dict of people who are to receive the email to the sources (BugNotificationRecipients) that represent the subscriptions that caused the notifications to be sent.
notificationsthe notifications that are being communicated.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.