~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugsubscription.txt

[r=jtv][bug=874250] Load preferredemail when calculating bug
 subscribers of any kind via BugSubscriptionInfo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
Finer-grained access to indirect subscribers is provided by
99
99
getAlsoNotifiedSubscribers() and getSubscribersFromDuplicates().
100
100
 
101
 
    >>> linux_source_bug.getAlsoNotifiedSubscribers()
 
101
    >>> list(linux_source_bug.getAlsoNotifiedSubscribers())
102
102
    [<Person at ...>]
103
 
    >>> linux_source_bug.getSubscribersFromDuplicates()
104
 
    ()
 
103
    >>> list(linux_source_bug.getSubscribersFromDuplicates())
 
104
    []
105
105
 
106
106
It is also possible to get the list of indirect subscribers for an
107
107
individual bug task.
108
108
 
109
109
    >>> from lp.bugs.model.bug import get_also_notified_subscribers
110
110
    >>> res = get_also_notified_subscribers(linux_source_bug.bugtasks[0])
111
 
    >>> res
 
111
    >>> list(res)
112
112
    [<Person at ...>]
113
113
 
114
114
These are security proxied.