Пример #1
0
 def render(self):
     results = [
         v.render() for v in self.viewlets
         if not IResourceViewlet.providedBy(v)
     ]
     return "\n".join([r for r in results if r.strip()])
Пример #2
0
 def render(self):
     results = [v.render() for v in self.viewlets if not IResourceViewlet.providedBy(v)]
     return "\n".join([r for r in results if r.strip()])
Пример #3
0
 def update(self):
     super(Headers, self).update()
     for viewlet in self.viewlets:
         if IResourceViewlet.providedBy(viewlet):
             viewlet.render()
Пример #4
0
 def update(self):
     super(Headers, self).update()
     for viewlet in self.viewlets:
         if IResourceViewlet.providedBy(viewlet):
             viewlet.render()