Back to index

plone3  3.1.7
Public Member Functions
Archetypes.Schema.Facade.CMFMetadataFieldNamesDescriptor Class Reference

List of all members.

Public Member Functions

def __get__

Detailed Description

A nice descriptor that computes a set of Archetypes
fields from a CMFMetadata Set (Formulator-based)

Definition at line 84 of file

Member Function Documentation

def Archetypes.Schema.Facade.CMFMetadataFieldNamesDescriptor.__get__ (   self,
  objtype = None 

Definition at line 88 of file

00089     def __get__(self, obj, objtype=None):
00090         pm = getToolByName(obj.context, 'portal_metadata', None)
00091         if pm is None:
00092             return []
00093         set = pm.getMetadataSet(obj.set_id)
00094         return fieldNamesFromSet(set, obj)

Here is the call graph for this function:

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