l.b.i.s.IStructuralSubscriptionTargetRead(Interface) : interface documentation

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

Known subclasses: lp.bugs.interfaces.webservice.IStructuralSubscriptionTarget

A Launchpad Structure allowing users to subscribe to it.

Read-only parts.

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.
Attribute bug_subscriptions All subscriptions to bugs at the METADATA level or higher.
Method userCanAlterSubscription Check if a user can change a subscription for a person.
Method userCanAlterBugSubscription Check if a user can change a bug subscription for a person.
Method getSubscription Return the subscription for person, if it exists.
Attribute target_type_display The type of the target, for display.
Method userHasBugSubscriptions Is user subscribed, directly or via a team, to bug mail?
@operation_returns_collection_of(IStructuralSubscription)
@export_read_operation()
@operation_for_version('beta')
def getSubscriptions():
Return all the subscriptions with the specified levels.
ReturnsA sequence of IStructuralSubscription.
parent_subscription_target =
The target's parent, or None if one doesn't exist.
bug_subscriptions =
All subscriptions to bugs at the METADATA level or higher.
def userCanAlterSubscription(subscriber, subscribed_by):
Check if a user can change a subscription for a person.
def userCanAlterBugSubscription(subscriber, subscribed_by):
Check if a user can change a bug subscription for a person.
@operation_parameters(Reference(IPerson))
@operation_returns_entry(IStructuralSubscription)
@export_read_operation()
@operation_for_version('beta')
def getSubscription(person):
Return the subscription for person, if it exists.
target_type_display =
The type of the target, for display.
@call_with(REQUEST_USER)
@export_read_operation()
@operation_for_version('beta')
def userHasBugSubscriptions(user):
Is user subscribed, directly or via a team, to bug mail?
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.