l.r.m.p.PersonSet : class documentation

Part of lp.registry.model.person View In Hierarchy

The set of persons.
Method __init__ Undocumented
Method isNameBlacklisted See IPersonSet.
Method getTopContributors See IPersonSet.
Method getByOpenIDIdentifier See IPersonSet.
Method getOrCreateByOpenIDIdentifier See IPersonSet.
Method getOrCreateSoftwareCenterCustomer See IPersonSet.
Method getUsernameForSSO See IPersonSet.
Method setUsernameFromSSO See IPersonSet.
Method getSSHKeysForSSO See IPersonSet
Method addSSHKeyFromSSO See IPersonSet
Method deleteSSHKeyFromSSO See IPersonSet.
Method newTeam See IPersonSet.
Method createPersonAndEmail See IPersonSet.
Method createPersonWithoutEmail Create and return a new Person without using an email address.
Method createPlaceholderPerson See IPersonSet.
Method ensurePerson See IPersonSet.
Method getByName See IPersonSet.
Method getByAccount See IPersonSet.
Method updateStatistics See IPersonSet.
Method peopleCount See IPersonSet.
Method teamsCount See IPersonSet.
Method find See IPersonSet.
Method findPerson See IPersonSet.
Method findTeam See IPersonSet.
Method get See IPersonSet.
Method getByEmail See IPersonSet.
Method getByEmails See IPersonSet.
Method mergeAsync See IPersonSet.
Method getValidPersons See IPersonSet.
Method getPeopleWithBranches See IPersonSet.
Method updatePersonalStandings See IPersonSet.
Method cacheBrandingForPeople See IPersonSet.
Method getPrecachedPersonsFromIDs See IPersonSet.
Method _validateName Undocumented
Method _newPerson Create and return a new Person with the given attributes.
Method _teamEmailQuery Product the query for team email addresses.
Method _teamNameQuery Produce the query for team names.
Method _getPrecachedPersons Lookup all members of the team with optional precaching.
def __init__(self):
Undocumented
def isNameBlacklisted(self, name, user=None):
See IPersonSet.
def getTopContributors(self, limit=50):
See IPersonSet.
def getByOpenIDIdentifier(self, identifier):
See IPersonSet.
def getOrCreateByOpenIDIdentifier(self, openid_identifier, email_address, full_name, creation_rationale, comment, trust_email=True):
See IPersonSet.
def getOrCreateSoftwareCenterCustomer(self, user, openid_identifier, email_address, display_name):
See IPersonSet.
def getUsernameForSSO(self, user, openid_identifier):
See IPersonSet.
def setUsernameFromSSO(self, user, openid_identifier, name, dry_run=False):
See IPersonSet.
def getSSHKeysForSSO(self, user, openid_identifier):
See IPersonSet
def addSSHKeyFromSSO(self, user, openid_identifier, key_text, dry_run=False):
See IPersonSet
def deleteSSHKeyFromSSO(self, user, openid_identifier, key_text, dry_run=False):
See IPersonSet.
def newTeam(self, teamowner, name, display_name, teamdescription=None, membership_policy=TeamMembershipPolicy.MODERATED, defaultmembershipperiod=None, defaultrenewalperiod=None, subscription_policy=None):
See IPersonSet.
def createPersonAndEmail(self, email, rationale, comment=None, name=None, displayname=None, hide_email_addresses=False, registrant=None):
See IPersonSet.
def createPersonWithoutEmail(self, name, rationale, comment=None, displayname=None, registrant=None):
Create and return a new Person without using an email address.

See IPersonSet.

def createPlaceholderPerson(self, openid_identifier, name):
See IPersonSet.
def _validateName(self, name):
Undocumented
def _newPerson(self, name, displayname, hide_email_addresses, rationale, comment=None, registrant=None, account=None):
Create and return a new Person with the given attributes.
def ensurePerson(self, email, displayname, rationale, comment=None, registrant=None, name=None):
See IPersonSet.
def getByName(self, name, ignore_merged=True):
See IPersonSet.
def getByAccount(self, account):
See IPersonSet.
def updateStatistics(self):
See IPersonSet.
def peopleCount(self):
See IPersonSet.
def teamsCount(self):
See IPersonSet.
def _teamEmailQuery(self, text):
Product the query for team email addresses.
def _teamNameQuery(self, text):
Produce the query for team names.
def find(self, text=''):
See IPersonSet.
def findPerson(self, text='', exclude_inactive_accounts=True, must_have_email=False, created_after=None, created_before=None):
See IPersonSet.
def findTeam(self, text='', preload_for_api=False):
See IPersonSet.
def get(self, personid):
See IPersonSet.
def getByEmail(self, email, filter_status=True):
See IPersonSet.
def getByEmails(self, emails, include_hidden=True, filter_status=True):
See IPersonSet.
def mergeAsync(self, from_person, to_person, requester, reviewer=None, delete=False):
See IPersonSet.
def getValidPersons(self, persons):
See IPersonSet.
def getPeopleWithBranches(self, product=None):
See IPersonSet.
def updatePersonalStandings(self):
See IPersonSet.
def cacheBrandingForPeople(self, people):
See IPersonSet.
def getPrecachedPersonsFromIDs(self, person_ids, need_api=False, need_karma=False, need_ubuntu_coc=False, need_teamowner=False, need_location=False, need_archive=False, need_preferred_email=False, need_validity=False, need_icon=False):
See IPersonSet.
def _getPrecachedPersons(self, origin, conditions, store=None, need_api=False, need_karma=False, need_ubuntu_coc=False, need_teamowner=False, need_location=False, need_archive=False, need_preferred_email=False, need_validity=False, need_icon=False):
Lookup all members of the team with optional precaching.
ParametersstoreProvide ability to specify the store.
originList of storm tables and joins. This list will be appended to. The Person table is required.
conditionsStorm conditions for tables in origin.
need_karmaThe karma attribute will be cached.
need_ubuntu_cocThe is_ubuntu_coc_signer attribute will be cached.
need_locationThe location attribute will be cached.
need_archiveThe archive attribute will be cached.
need_preferred_emailThe preferred email attribute will be cached.
need_validityThe is_valid attribute will be cached.
need_iconCache the persons' icons so that their URLs can be generated without further reference to the database.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.