Part of lp.registry.interfaces.structuralsubscription View In Hierarchy
Known subclasses: lp.registry.interfaces.distribution.IDistribution, lp.registry.interfaces.distributionsourcepackage.IDistributionSourcePackage, lp.registry.interfaces.distroseries.IDistroSeries, lp.registry.interfaces.milestone.IMilestone, lp.registry.interfaces.product.IProduct, lp.registry.interfaces.productseries.IProductSeries, lp.registry.interfaces.projectgroup.IProjectGroup
Method | getSubscriptions | Return all the subscriptions with the specified levels. |
Attribute | parent_subscription_target | The target's parent, or None if one doesn't exist. |
Method | userCanAlterSubscription | Check if a user can change a subscription for a person. |
Method | addSubscription | Add a subscription for this structure. |
Method | userCanAlterBugSubscription | Check if a user can change a bug subscription for a person. |
Method | addBugSubscription | Add a bug subscription for this structure. |
Method | removeBugSubscription | Remove a subscription to bugs from this structure. |
Method | getSubscription | Return the subscription for person , if it exists. |
Method | getBugNotificationsRecipients | Return the set of bug subscribers to this target. |
Attribute | target_type_display | The type of the target, for display. |
Method | userHasBugSubscriptions | Is user subscribed, directly or via a team, to bug mail? |
Returns | A sequence of IStructuralSubscription . | |
Unknown Field: min_bug_notification_level | The lowest bug notification level for which subscriptions should be returned. | |
Unknown Field: min_blueprint_notification_level | The lowest bleuprint notification level for which subscriptions should be returned. |
This method is used to create a new IStructuralSubscription
for the target, with no levels set.
Returns | The new subscription. | |
Unknown Field: subscriber | The IPerson who will be subscribed. If omitted, subscribed_by will be used. | |
Unknown Field: subscribed_by | The IPerson creating the subscription. |
This method is used to create a new IStructuralSubscription
for the target with the bug notification level set to
COMMENTS, the only level currently in use.
Returns | The new bug subscription. | |
Unknown Field: subscriber | The IPerson who will be subscribed. If omitted, subscribed_by will be used. | |
Unknown Field: subscribed_by | The IPerson creating the subscription. |
If subscription levels for other applications are set,
set the subscription's bug_notification_level
to
NOTHING
, otherwise, destroy the subscription.
Unknown Field: subscriber | The IPerson who will be unsubscribed. If omitted, unsubscribed_by will be used. | |
Unknown Field: unsubscribed_by | The IPerson removing the subscription. |
person
, if it exists.Return the set of bug subscribers to this target. :param recipients: If recipients is not None, a rationale is added for each subscriber. :type recipients: `INotificationRecipientSet` 'param level: If level is not None, only strucutral subscribers with a subscrition level greater or equal to the given value are returned. :type level: `BugNotificationLevel` :return: An `INotificationRecipientSet` instance containing the bug subscribers.