~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: 2011-12-19 13:19:47 UTC
  • mfrom: (14538.1.6 identity-apocalypse-0)
  • Revision ID: launchpad@pqm.canonical.com-20111219131947-owfvmtxts9s1uut9
[rs=sinzui][bug=905943] Migrate account and emailaddress to
 lp.services.identity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
Similarly, email addresses with an unvalidated status are not considered
142
142
registered either.
143
143
 
144
 
    >>> from canonical.launchpad.interfaces.emailaddress import IEmailAddressSet
 
144
    >>> from lp.services.identity.interfaces.emailaddress import IEmailAddressSet
145
145
    >>> emailset = getUtility(IEmailAddressSet)
146
146
    >>> new_address = emailset.new(
147
147
    ...     'frederick@example.com', fred, account=fred.account)
276
276
This is true even if by dumb luck the address actually gets registered in
277
277
Launchpad.
278
278
 
279
 
    >>> from canonical.launchpad.interfaces.emailaddress import EmailAddressStatus
 
279
    >>> from lp.services.identity.interfaces.emailaddress import EmailAddressStatus
280
280
    >>> new_address = emailset.new(
281
281
    ...     config.mailman.archive_address, fred,
282
282
    ...     EmailAddressStatus.VALIDATED, account=fred.account)