Logo Search packages:      
Sourcecode: zope-cmfmember version File versions  Download package

def CMFMember::tools::memberdatacontainer::MemberDataContainer::getMemberSchema (   self,
  kw 
)

Returns acquisition wrapped member schema.

The following keyword arguments are supported:

- schema_id: name of the member type for which schema
     to return

Definition at line 625 of file memberdatacontainer.py.

00625                                    :
        """
        Returns acquisition wrapped member schema.

        The following keyword arguments are supported:

        - schema_id: name of the member type for which schema
                     to return
        """
        if not USE_SCHEMA_EDITOR:
            ctrl_tool = getToolByName(self, 'cmfmember_control')
            klass_dict = ctrl_tool.getMemberKlasses()

        if kw.has_key('schema_id'):
            klass_id = kw['schema_id']
            if USE_SCHEMA_EDITOR:
                schema = self.atse_getSchemaById(klass_id)
            else:
                schema = klass_dict[klass_id].schema
        else:
            if USE_SCHEMA_EDITOR:
                schema=self.atse_getDefaultSchema()
            else:
                schema = klass_dict[self.getTypeName()].schema

        schema = ImplicitAcquisitionWrapper(schema, self)
        return schema

    def processSchemaEditor(self, context, field, custom_data):


Generated by  Doxygen 1.6.0   Back to index