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

def CMFDynamicViewFTI::fti::DynamicViewTypeInformation::manage_changeProperties (   self,
  kw 
)

Overwrite change properties to verify that default_view is in the method
list

Definition at line 91 of file fti.py.

00091                                            :
        """Overwrite change properties to verify that default_view is in the method
        list
        """
        FactoryTypeInformation.manage_changeProperties(self, **kw)
        default_view = self.default_view
        view_methods = self.view_methods
        if not default_view:
            # TODO: use view action
            self.default_view = default_view = self.immediate_view
        if not view_methods:
            self.view_methods = view_methods = (default_view,)
        if default_view and default_view not in view_methods:
            raise ValueError, "%s not in %s" % (default_view, view_methods)

    security.declareProtected(View, 'getAvailableViewMethods')
    def getAvailableViewMethods(self, context):


Generated by  Doxygen 1.6.0   Back to index