l.b.i.p.IPersonSubscriptions(Interface) : interface documentation

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

Subscription information for a given person and bug.
Attribute count The total number of subscriptions, real and virtual
Bool muted Is the bug muted?
PersonChoice person The person for which this information is gathered.
Attribute direct An IRealSubscriptionInfoCollection. Contains information about all direct subscriptions. Includes those through membership in teams directly subscribed to a bug.
Attribute from_duplicate An IRealSubscriptionInfoCollection. Contains information about all subscriptions through duplicate bugs. Includes those through team membership.
Attribute as_owner An IVirtualSubscriptionInfoCollection containing information about all virtual subscriptions as target owner when no bug supervisor is defined for the target, including those through team memberships.
Attribute as_assignee An IVirtualSubscriptionInfoCollection containing information about all virtual subscriptions as an assignee, including those through team memberships.
Method reload Reload subscriptions for a person/bug.
Method getDataForClient Get data for use in client-side code.
count =
The total number of subscriptions, real and virtual
muted =
Is the bug muted?
person =
The person for which this information is gathered.
direct =
An IRealSubscriptionInfoCollection. Contains information about all direct subscriptions. Includes those through membership in teams directly subscribed to a bug.
from_duplicate =
An IRealSubscriptionInfoCollection. Contains information about all subscriptions through duplicate bugs. Includes those through team membership.
as_owner =
An IVirtualSubscriptionInfoCollection containing information about all virtual subscriptions as target owner when no bug supervisor is defined for the target, including those through team memberships.
as_assignee =
An IVirtualSubscriptionInfoCollection containing information about all virtual subscriptions as an assignee, including those through team memberships.
def reload():
Reload subscriptions for a person/bug.
def getDataForClient():
Get data for use in client-side code.

Returns two dicts, subscription info and references. references is expected to be used as IJSONRequestCache(request).objects.extend(references). subscription info also is expected to be placed in .objects for lazr.restful to marshall for the client. For objects in the data structure, values are strings that are keys into the "references" map. With expected usage, then, on the client side LP.cache[name] would return the desired value.

subscription info roughly mirrors the structure of the IPersonSubscriptions that sends it.

API Documentation for Launchpad, generated by pydoctor at 2018-12-19 00:00:19.