def getDefaultPage(self, obj, request=None): # Given a folderish item, find out if it has a default-page using # the lookup rules of Plone (see Products.CMFPlone/defaultpage.py). # Lookup happens over a view, for which in theory a different # implementation may be used. if request is None: if hasattr(self, 'REQUEST'): request = self.REQUEST if request: return get_default_page_via_view(obj, request)
def getDefaultPage(self, obj, request=None): # Given a folderish item, find out if it has a default-page using # the lookup rules of Plone (see Products.CMFPlone/defaultpage.py). # Lookup happens over a view, for which in theory a different # implementation may be used. if request is None: if hasattr(self, 'REQUEST'): request = self.REQUEST if request: return get_default_page_via_view(obj, request)