Back to index

plone3  3.1.7
Public Member Functions
CMFCalendar.browser.event.EventTypeVocabulary Class Reference

List of all members.

Public Member Functions

def __call__

Detailed Description

Vocabulary factory for available event types.

Definition at line 44 of file

Member Function Documentation

Definition at line 51 of file

00052     def __call__(self, context):
00053         context = getattr(context, 'context', context)
00054         mdtool = getUtility(IMetadataTool)
00055         items = [ (str(v), unicode(v), _(v))
00056                   for v in mdtool.listAllowedSubjects(context) ]
00057         return SimpleVocabulary.fromTitleItems(items)

Here is the caller graph for this function:

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