[Zope] Re: Recursive Python Call in Zope
Paul Winkler
pw_lists@slinkp.com
Tue, 19 Nov 2002 09:10:27 -0800
On Tue, Nov 19, 2002 at 02:46:59PM +0100, Christopher Baumbach wrote:
> OK... The output is correctly given but now I have the problem, that not all
> Folders are displayed...
you don't loop over the subfolders, you only show the first one:
> for folder in folders:
> subfolders = folder.objectValues('Folder')
> if len(subfolders) > 0:
> print ind + "+" + folder.id
> print script(subfolders[0], indent+1)
^^^^^^^^^^^^^^
--
Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"