~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Raphael Badin
  • Date: 2012-01-06 08:27:55 UTC
  • mfrom: (14513.5.4 builder-history-lfa)
  • mto: This revision was merged to the branch mainline in revision 14654.
  • Revision ID: raphael.badin@canonical.com-20120106082755-95a0eh6nakv5hj3b
Merge devel.

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.