l.b.m.s.StructuralSubscriptionTargetMixin : class documentation

Part of lp.bugs.model.structuralsubscription View In Hierarchy

Known subclasses: lp.registry.model.distribution.Distribution, lp.registry.model.distributionsourcepackage.DistributionSourcePackage, lp.registry.model.distroseries.DistroSeries, lp.registry.model.milestone.Milestone, lp.registry.model.product.Product, lp.registry.model.productseries.ProductSeries, lp.registry.model.projectgroup.ProjectGroup

Mixin class for implementing IStructuralSubscriptionTarget.
Method parent_subscription_target See IStructuralSubscriptionTarget.
Method target_type_display See IStructuralSubscriptionTarget.
Method userCanAlterSubscription See IStructuralSubscriptionTarget.
Method addSubscription See IStructuralSubscriptionTarget.
Method userCanAlterBugSubscription See IStructuralSubscriptionTarget.
Method addBugSubscription See IStructuralSubscriptionTarget.
Method addBugSubscriptionFilter See IStructuralSubscriptionTarget.
Method removeBugSubscription See IStructuralSubscriptionTarget.
Method getSubscription See IStructuralSubscriptionTarget.
Method getSubscriptions See IStructuralSubscriptionTarget.
Method bug_subscriptions See IStructuralSubscriptionTarget.
Method userHasBugSubscriptions See IStructuralSubscriptionTarget.
Method __helper A IStructuralSubscriptionTargetHelper for this object.
Method _target_args Target Arguments.
@cachedproperty
def __helper(self):
A IStructuralSubscriptionTargetHelper for this object.

Eventually this helper object could become the way to work with structural subscriptions. For now it just provides a few bits that vary with the context.

It is cached in a pseudo-private variable because this is a mixin class.

@property
def _target_args(self):
Target Arguments.

Return a dictionary with the arguments representing this target in a call to the structural subscription constructor.

@property
def parent_subscription_target(self):
See IStructuralSubscriptionTarget.
@property
def target_type_display(self):
See IStructuralSubscriptionTarget.
def userCanAlterSubscription(self, subscriber, subscribed_by):
See IStructuralSubscriptionTarget.
def addSubscription(self, subscriber, subscribed_by):
See IStructuralSubscriptionTarget.
def userCanAlterBugSubscription(self, subscriber, subscribed_by):
See IStructuralSubscriptionTarget.
def addBugSubscription(self, subscriber, subscribed_by):
See IStructuralSubscriptionTarget.
def addBugSubscriptionFilter(self, subscriber, subscribed_by):
See IStructuralSubscriptionTarget.
def removeBugSubscription(self, subscriber, unsubscribed_by):
See IStructuralSubscriptionTarget.
def getSubscription(self, person):
See IStructuralSubscriptionTarget.
def getSubscriptions(self, subscriber=None):
See IStructuralSubscriptionTarget.
@property
def bug_subscriptions(self):
See IStructuralSubscriptionTarget.
def userHasBugSubscriptions(self, user):
See IStructuralSubscriptionTarget.
API Documentation for Launchpad, generated by pydoctor at 2019-10-20 00:00:13.