c.l.v.d.BugNominatableSeriesVocabularyBase(NamedSQLObjectVocabulary) : class documentation

Part of canonical.launchpad.vocabularies.dbobjects View In Hierarchy

Known subclasses: canonical.launchpad.vocabularies.dbobjects.BugNominatableDistroSeriesVocabulary, canonical.launchpad.vocabularies.dbobjects.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 getQuery Undocumented
Method getTerm Undocumented
Method emptySelectResults Return a SelectResults object without any elements.
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 2010-09-27 00:00:11.