[Zope] How do I exclude a specific item from a tal:repeat

Sergey Volobuev zope at phpv.khv.ru
Sun Aug 17 23:31:32 EDT 2003


>> How do I exclude a particular item from being returned from the 
>> following statement. I have a file i use with a particular name and I 
>> don't want it to show up in my listing...
>>
>> tal:repeat="obj python:here.getFolderContents(suppressHiddenFiles=1)"
>
tal.repeat="obj python:filter(lambda item:not 
(item.getId()=='unwanted_file'),here.getFolderContents(suppressHiddenFiles=1));




More information about the Zope mailing list