Esempio n. 1
0
 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)
Esempio n. 2
0
 def __call__(self):
     template = zope.component.getMultiAdapter(
         (self, self.request), ILayoutTemplate)
     return template(self)
Esempio n. 3
0
 def render(self):
     template = zope.component.getMultiAdapter((self, self.request),
                                               IPageTemplate)
     return template(self)