def render(self): """First try to locate an index page for the site""" for page in self.context.values(): if interfaces.IFolderIndex.providedBy(page): view = zope.component.getMultiAdapter((page, self.request), name='index') return view(page, self.request).render() template = zope.component.getMultiAdapter((self, self.request), self._template_interface, name=self._template_name) return template(self)
def __call__(self): template = zope.component.getMultiAdapter( (self, self.request), ILayoutTemplate) return template(self)
def render(self): template = zope.component.getMultiAdapter((self, self.request), IPageTemplate) return template(self)