Back to index

plone3  3.1.7
Public Member Functions Class Reference

List of all members.

Public Member Functions

def __call__

Detailed Description

Vocabulary factory for wickedized portal types.

Definition at line 47 of file

Member Function Documentation

Definition at line 52 of file

00053     def __call__(self, context):
00054         context = getattr(context, 'context', context)
00055         ttool = getToolByName(context, 'portal_types')
00056         items = []
00057         # Pretty insane code, but wicked uses different internal names for
00058         # the types :(
00059         for t in ttool.listContentTypes():
00060             for reg in wicked_basic_type_regs:
00061                 if reg.type_id == t:
00062                     items.append(SimpleTerm(reg.type, reg.type, ttool[t].Title()))
00063         return SimpleVocabulary(items)

Here is the call graph for this function:

Here is the caller graph for this function:

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