l.s.w.v.NamedStormVocabulary(StormVocabularyBase) : class documentation

Part of lp.services.webapp.vocabulary View In Hierarchy

Known subclasses: lp.services.webapp.vocabulary.NamedStormHugeVocabulary

A Storm vocabulary for tables with a unique Unicode name column.

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 searchForTerms Undocumented
Method toTerm See StormVocabularyBase.
Method __contains__ Undocumented
Method getTermByToken Undocumented

Inherited from StormVocabularyBase:

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

Inherited from FilteredVocabularyBase (via StormVocabularyBase):

Method __getattribute__ Undocumented
Method supportedFilters Undocumented
def searchForTerms(self, query=None, vocab_filter=None):
def toTerm(self, obj):
See StormVocabularyBase.

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 __contains__(self, obj):
def getTermByToken(self, token):
API Documentation for Launchpad, generated by pydoctor at 2019-06-20 00:00:12.