Beispiel #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()])
Beispiel #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()])
Beispiel #3
0
 def update(self):
     super(Headers, self).update()
     for viewlet in self.viewlets:
         if IResourceViewlet.providedBy(viewlet):
             viewlet.render()
Beispiel #4
0
 def update(self):
     super(Headers, self).update()
     for viewlet in self.viewlets:
         if IResourceViewlet.providedBy(viewlet):
             viewlet.render()