Part of canonical.launchpad.webapp.vocabulary View In Hierarchy
Known subclasses: canonical.launchpad.vocabularies.dbobjects.BugNominatableSeriesVocabularyBase, canonical.launchpad.vocabularies.dbobjects.FutureSprintVocabulary, canonical.launchpad.vocabularies.dbobjects.ProcessorFamilyVocabulary, canonical.launchpad.vocabularies.dbobjects.ProcessorVocabulary, canonical.launchpad.vocabularies.dbobjects.SpecificationDependenciesVocabulary, canonical.launchpad.vocabularies.dbobjects.SpecificationVocabulary, canonical.launchpad.vocabularies.dbobjects.SprintVocabulary, canonical.launchpad.vocabularies.dbobjects.TranslationGroupVocabulary, canonical.launchpad.webapp.vocabulary.NamedSQLObjectHugeVocabulary, lp.registry.vocabularies.CommercialProjectsVocabulary, lp.registry.vocabularies.DistributionVocabulary, lp.registry.vocabularies.DistroSeriesVocabulary, lp.registry.vocabularies.KarmaCategoryVocabulary
Provides all methods required by IHugeVocabulary, although it doesn't actually specify this interface since it may not actually be huge and require the custom widgets.
Method | toTerm | See SQLObjectVocabularyBase. |
Method | getTermByToken | Undocumented |
Method | search | Return terms where query is a subtring of the name. |
Inherited from SQLObjectVocabularyBase:
Method | __init__ | Undocumented |
Method | searchForTerms | Undocumented |
Method | __iter__ | Return an iterator which provides the terms from the vocabulary. |
Method | __len__ | Undocumented |
Method | __contains__ | Undocumented |
Method | getQuery | Undocumented |
Method | getTerm | Undocumented |
Method | emptySelectResults | Return a SelectResults object without any elements. |
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.