l.r.v.ValidPersonOrTeamVocabulary(BasePersonVocabulary, SQLObjectVocabularyBase) : class documentation

Part of lp.registry.vocabularies View In Hierarchy

Known subclasses: lp.registry.vocabularies.ValidPersonOrExclusiveTeamVocabulary, lp.registry.vocabularies.ValidPersonVocabulary, lp.registry.vocabularies.ValidTeamMemberVocabulary, lp.registry.vocabularies.ValidTeamOwnerVocabulary, lp.registry.vocabularies.ValidTeamVocabulary

The set of valid, viewable Persons/Teams in Launchpad.

A Person is considered valid if they have a preferred email address, and Person.merged is None. Teams have no restrictions at all, which means that all teams the user has the permission to view are considered valid. A user can view private teams in which they are a member and any public team.

This vocabulary is registered as ValidPersonOrTeam, ValidAssignee, ValidMaintainer and ValidOwner, because they have exactly the same requisites.

Method __contains__ Undocumented
Method store The storm store.
Method search Return people/teams whose fti or email address match :text:.
Method searchForTerms See IHugeVocabulary.
Method supportedFilters See IHugeVocabulary.
Method _karma_context_constraint Undocumented
Method _doSearch Return the people/teams whose fti or email address match :text:

Inherited from BasePersonVocabulary:

Method toTerm Return the term for this object.
Method getTermByToken Return the term for the given token.

Inherited from SQLObjectVocabularyBase:

Method __init__ Undocumented
Method toTerm Undocumented
Method __iter__ Return an iterator which provides the terms from the vocabulary.
Method __len__ Undocumented
Method getTerm Undocumented
Method getTermByToken Undocumented
Method emptySelectResults Return a SelectResults object without any elements.

Inherited from FilteredVocabularyBase (via SQLObjectVocabularyBase):

Method __getattribute__ Undocumented
def __contains__(self, obj):
Undocumented
@cachedproperty
def store(self):
The storm store.
@cachedproperty
def _karma_context_constraint(self):
Undocumented
def _doSearch(self, text='', vocab_filter=None):
Return the people/teams whose fti or email address match :text:
def search(self, text, vocab_filter=None):
Return people/teams whose fti or email address match :text:.
def searchForTerms(self, query=None, vocab_filter=None):
See IHugeVocabulary.
def supportedFilters(self):
See IHugeVocabulary.
API Documentation for Launchpad, generated by pydoctor at 2019-04-19 00:00:03.