Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFDefault.formlib.vocabulary.SimpleVocabulary Class Reference

List of all members.

Public Member Functions

def fromTitleItems

Static Public Attributes

tuple fromTitleItems = classmethod(fromTitleItems)

Detailed Description

Definition at line 23 of file

Member Function Documentation

def CMFDefault.formlib.vocabulary.SimpleVocabulary.fromTitleItems (   cls,
Construct a vocabulary from a list of (token, value, title) tuples.

Definition at line 25 of file

00026     def fromTitleItems(cls, items, *interfaces):
00027         """Construct a vocabulary from a list of (token, value, title) tuples.
00028         """
00029         terms = [ cls.createTerm(value, token, title)
00030                   for (token, value, title) in items ]
00031         return cls(terms, *interfaces)

Member Data Documentation

Definition at line 32 of file

The documentation for this class was generated from the following file: