Part of lp.bugs.interfaces.personsubscriptioninfo View In Hierarchy
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. |
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.