~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/mailinglist-subscriptions-xmlrpc.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:
143
143
 
144
144
    >>> from lp.services.identity.interfaces.emailaddress import IEmailAddressSet
145
145
    >>> emailset = getUtility(IEmailAddressSet)
146
 
    >>> new_address = emailset.new(
147
 
    ...     'frederick@example.com', fred, account=fred.account)
 
146
    >>> new_address = emailset.new('frederick@example.com', fred)
148
147
    >>> new_address.email, new_address.status.title
149
148
    (u'frederick@example.com', 'New Email Address')
150
149
    >>> sorted((email_address.email, email_address.status.title)
279
278
    >>> from lp.services.identity.interfaces.emailaddress import EmailAddressStatus
280
279
    >>> new_address = emailset.new(
281
280
    ...     config.mailman.archive_address, fred,
282
 
    ...     EmailAddressStatus.VALIDATED, account=fred.account)
 
281
    ...     EmailAddressStatus.VALIDATED)
283
282
    >>> transaction.commit()
284
283
 
285
284
    >>> mailinglist_api.isRegisteredInLaunchpad(