~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/person.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:
158
158
 
159
159
    >>> emailset = getUtility(IEmailAddressSet)
160
160
    >>> validated_email = emailset.new(
161
 
    ...     'validated@canonical.com', p, account=p.account)
 
161
    ...     'validated@canonical.com', p)
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, account=p.account)
 
174
    ...     'preferred@canonical.com', p)
175
175
    >>> preferred_email.status
176
176
    <DBItem EmailAddressStatus.NEW...
177
177