~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • 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:
768
768
        """
769
769
        if email_status is None:
770
770
            email_status = EmailAddressStatus.VALIDATED
771
 
        if account is None:
772
 
            account = person.account
773
771
        return getUtility(IEmailAddressSet).new(
774
772
            address, person, email_status, account)
775
773