Re: Conditionally render viewlet
Antonin AMAND <[email protected]> Wed, 8 Jun 2011 15:54:05 +0200
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 8, 2011 at 1:37 PM, Jonathan Bowlas <j.bowlas-hclig2XLE9Zaa/[email protected]> wrote: > Is there an example infrae extension or theme where the filter method > is overridden? > > J Sorry. filter method takes the viewlets as parameter. def filter(self, viewlets): viewlets = super(LeftColumn, self).filter(viewlets) return [(name, viewlet) for name, viewlet in viewlets if viewlet.available()] This should work. Antonin