l.b.v.BugNominatableSeriesVocabularyBase(NamedSQLObjectVocabulary) : class documentation

Part of lp.bugs.vocabularies View In Hierarchy

Known subclasses: lp.bugs.vocabularies.BugNominatableDistroSeriesVocabulary, lp.bugs.vocabularies.BugNominatableProductSeriesVocabulary

Base vocabulary class for series for which a bug can be nominated.
Method __iter__ Return an iterator which provides the terms from the vocabulary.
Method toTerm See SQLObjectVocabularyBase.
Method getTermByToken Undocumented
Method _getNominatableObjects Return the series objects that the bug can be nominated for.
Method _queryNominatableObjectByName Return the series object with the given name.

Inherited from NamedSQLObjectVocabulary:

Method search Return terms where query is a subtring of the name.

Inherited from SQLObjectVocabularyBase (via NamedSQLObjectVocabulary):

Method __init__ Undocumented
Method searchForTerms Undocumented
Method __len__ Undocumented
Method __contains__ Undocumented
Method getTerm Undocumented
Method emptySelectResults Return a SelectResults object without any elements.

Inherited from FilteredVocabularyBase (via NamedSQLObjectVocabulary, SQLObjectVocabularyBase):

Method __getattribute__ Undocumented
Method supportedFilters Undocumented
def __iter__(self):
Return an iterator which provides the terms from the vocabulary.
def toTerm(self, obj):
See SQLObjectVocabularyBase.

This implementation uses name as a token instead of the object's ID, and tries to be smart about deciding to present an object's title if it has one.

def getTermByToken(self, token):
Undocumented
def _getNominatableObjects(self):
Return the series objects that the bug can be nominated for.
def _queryNominatableObjectByName(self, name):
Return the series object with the given name.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.