~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Raphael Badin
  • Date: 2012-01-06 08:27:55 UTC
  • mfrom: (14513.5.4 builder-history-lfa)
  • mto: This revision was merged to the branch mainline in revision 14654.
  • Revision ID: raphael.badin@canonical.com-20120106082755-95a0eh6nakv5hj3b
Merge devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
614
614
        email_address_status=None, hide_email_addresses=False,
615
615
        displayname=None, time_zone=None, latitude=None, longitude=None,
616
616
        selfgenerated_bugnotifications=False, member_of=(),
617
 
        homepage_content=None):
 
617
        homepage_content=None, account_status=None):
618
618
        """Create and return a new, arbitrary Person.
619
619
 
620
620
        :param email: The email address for the new person.
679
679
 
680
680
        removeSecurityProxy(email).status = email_address_status
681
681
 
 
682
        if account_status:
 
683
            removeSecurityProxy(person.account).status = account_status
682
684
        self.makeOpenIdIdentifier(person.account)
683
685
 
684
686
        for team in member_of:
766
768
        """
767
769
        if email_status is None:
768
770
            email_status = EmailAddressStatus.VALIDATED
769
 
        if account is None:
770
 
            account = person.account
771
771
        return getUtility(IEmailAddressSet).new(
772
772
            address, person, email_status, account)
773
773