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

def CMFDynamicViewFTI::fti::DynamicViewTypeInformation::defaultView (   self,
  context 
)

Get the current view to use for an object. If a default page is  set,
use that, else use the currently selected view method/layout.

Definition at line 181 of file fti.py.

00181                                   :
        """Get the current view to use for an object. If a default page is  set,
        use that, else use the currently selected view method/layout.
        """

        # Delegate to PloneTool's version if we have it else, use own rules
        plone_utils = getToolByName(self, 'plone_utils', None)
        if plone_utils is not None:
            obj, path = plone_utils.browserDefault(context)
            return path[-1]
        else:
            default_page = self.getDefaultPage(context, check_exists = True)
            if default_page is not None:
                return default_page
            return self.getViewMethod(context)

    security.declarePublic('queryMethodID')
    def queryMethodID(self, alias, default=None, context=None):


Generated by  Doxygen 1.6.0   Back to index