~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/person.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-29 05:29:36 UTC
  • mto: This revision was merged to the branch mainline in revision 14606.
  • Revision ID: curtis.hovey@canonical.com-20111229052936-c261pibg1p6ze6m4
Moved canonical.config to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
 
159
159
    >>> emailset = getUtility(IEmailAddressSet)
160
160
    >>> validated_email = emailset.new(
161
 
    ...     'validated@canonical.com', p)
 
161
    ...     'validated@canonical.com', p, account=p.account)
162
162
    >>> validated_email.status
163
163
    <DBItem EmailAddressStatus.NEW...
164
164
 
171
171
setPreferredEmail() method updated the address's status.
172
172
 
173
173
    >>> preferred_email = emailset.new(
174
 
    ...     'preferred@canonical.com', p)
 
174
    ...     'preferred@canonical.com', p, account=p.account)
175
175
    >>> preferred_email.status
176
176
    <DBItem EmailAddressStatus.NEW...
177
177
 
441
441
created team.
442
442
 
443
443
    >>> from zope.lifecycleevent.interfaces import IObjectCreatedEvent
444
 
    >>> from lp.testing.event import TestEventListener
 
444
    >>> from canonical.lazr.testing.event import TestEventListener
445
445
    >>> def print_event(team, event):
446
446
    ...     print "ObjectCreatedEvent fired for team '%s'" % team.name
447
447