l.s.i.i.e.IEmailAddressSet(Interface) : interface documentation

Part of lp.services.identity.interfaces.emailaddress View In Hierarchy

The set of EmailAddresses.
Method new Create a new EmailAddress with the given email.
Method getByPerson Return all email addresses for the given person.
Method getPreferredEmailForPeople Return preferred email addresses for the people provided.
Method getByEmail Return the EmailAddress object for the given email.
def new(email, person=None, status=EmailAddressStatus.NEW):
Create a new EmailAddress with the given email.

The newly created EmailAddress will point to the person.

The given status must be an item of EmailAddressStatus.

RaisesInvalidEmailAddressIf the email address is invalid.
def getByPerson(person):
Return all email addresses for the given person.
def getPreferredEmailForPeople(people):
Return preferred email addresses for the people provided.
def getByEmail(email):
Return the EmailAddress object for the given email.

Return None if there is no such email address.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.