~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Stuart Bishop
  • Date: 2012-01-05 07:57:21 UTC
  • mfrom: (14635 devel)
  • mto: This revision was merged to the branch mainline in revision 14636.
  • Revision ID: stuart.bishop@canonical.com-20120105075721-ol7khggaclh7dgqj
Merged rocketfuel into db-deploy.

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(