~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/mailinglist-subscriptions.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-05 05:05:42 UTC
  • mfrom: (14632.1.5 implied-account)
  • Revision ID: launchpad@pqm.canonical.com-20120105050542-b4m54slx2mqa8htl
[r=wgrant][no-qa] EmailAddressSet.new now infers account from person
        if not specified explicitly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    >>> from lp.services.identity.interfaces.emailaddress import IEmailAddressSet
126
126
    >>> address_set = getUtility(IEmailAddressSet)
127
127
    >>> alternative = address_set.new(
128
 
    ...     'anne.x.person@example.net', anne, account=anne.account)
 
128
    ...     'anne.x.person@example.net', anne)
129
129
    >>> alternative.email
130
130
    u'anne.x.person@example.net'
131
131
 
246
246
to post to the mailing list.
247
247
 
248
248
    >>> alternative = address_set.new(
249
 
    ...     'cris.x.person@example.net', cris, account=cris.account)
 
249
    ...     'cris.x.person@example.net', cris)
250
250
    >>> alternative.email
251
251
    u'cris.x.person@example.net'
252
252