l.c.v.b.BranchVocabularyBase(SQLObjectVocabularyBase) : class documentation

Part of lp.code.vocabularies.branch View In Hierarchy

Known subclasses: lp.code.vocabularies.branch.BranchRestrictedOnProductVocabulary, lp.code.vocabularies.branch.BranchVocabulary, lp.code.vocabularies.branch.HostedBranchRestrictedOnOwnerVocabulary

Implements interfaces: canonical.launchpad.webapp.vocabulary.IHugeVocabulary

A base class for Branch vocabularies.

Override BranchVocabularyBase._getCollection to provide the collection of branches which make up the vocabulary.

Method toTerm The display should include the URL if there is one.
Method getTermByToken See IVocabularyTokenized.
Method searchForTerms See IHugeVocabulary.
Method __len__ See IVocabulary.
Method _getCollection Return the collection of branches the vocabulary searches.

Inherited from SQLObjectVocabularyBase:

Method __init__ Undocumented
Method search Undocumented
Method __iter__ Return an iterator which provides the terms from the vocabulary.
Method __contains__ Undocumented
Method getQuery Undocumented
Method getTerm Undocumented
Method emptySelectResults Return a SelectResults object without any elements.
def toTerm(self, branch):
The display should include the URL if there is one.
def getTermByToken(self, token):
See IVocabularyTokenized.
def _getCollection(self):
Return the collection of branches the vocabulary searches.

Subclasses MUST override and implement this.

def searchForTerms(self, query=None):
See IHugeVocabulary.
def __len__(self):
See IVocabulary.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.