c.l.i.a.IAccountSet(Interface) : interface documentation

Part of canonical.launchpad.interfaces.account View In Hierarchy

Known implementations: canonical.launchpad.database.account.AccountSet

Creation of and access to IAccount providers.
Method new Create a new IAccount.
Method get Return the IAccount with the given id.
Method createAccountAndEmail Create and return both a new IAccount and IEmailAddress.
Method getByEmail Return the IAccount linked to the given email address.
Method getByOpenIDIdentifier Return the IAccount with the given OpenID identifier.
def new(rationale, displayname, password=None, password_is_encrypted=False):
Create a new IAccount.
ParametersrationaleAn AccountCreationRationale value.
displaynameThe user's display name.
passwordA password.
password_is_encryptedIf True, the password parameter has already been encrypted using the IPasswordEncryptor utility. If False, the password will be encrypted automatically.
ReturnsThe newly created IAccount provider.
def get(id):
Return the IAccount with the given id.
RaisesLookupErrorIf the account is not found.
def createAccountAndEmail(email, rationale, displayname, password, password_is_encrypted=False):
Create and return both a new IAccount and IEmailAddress.

The account will be in the ACTIVE state, with the email address set as its preferred email address.

def getByEmail(email):
Return the IAccount linked to the given email address.
ParametersemailA string, not an IEmailAddress provider.
ReturnsAn IAccount.
RaisesLookupErrorIf the account is not found.
def getByOpenIDIdentifier(openid_identity):
Return the IAccount with the given OpenID identifier.
Parametersopen_identifierAn ascii compatible string that is either the old or new openid_identifier that belongs to an account.
ReturnsAn IAccount
RaisesLookupErrorIf the account is not found.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.