[ZPT] restrict items in tree

emf mindlace@imeme.net
Mon, 19 Aug 2002 10:04:32 -0400


Chris Withers wrote:
> emf wrote:
> 
>> So I'm trying to make a tree not show folders that have a boolean 
>> "noshow" attribute set.
> 
> 
> What's the code you have so far?

The code from zpt_examples -

from ZTUtils import SimpleTreeMaker

tm = SimpleTreeMaker(tree_pre)
tm.setSkip('')
tree, rows = tm.cookieTree(tree_root)
rows.pop(0)
return {'root': tree, 'rows': rows}

~ethan