[Zope] Passing of a Folder Object to a Python Script

Oliver Bleutgen myzope@gmx.net
Wed, 11 Sep 2002 18:12:17 +0200


I'm not quoting, because I couldn't decide what to snip. ;-)
Since I'm not a TAL expert (I'm not even a newbie), I'll concentratae on 
the script (python) side of things.

Why don't you call the submenu python script in your menu python script?

Like
menu.py:

folder_list = []
for folder in objectValues('Folder'):
   folder_dict=do_stuff_with_folder
   folder_dict['submenu_data'] = folder.submenu()
   folder_list.append(folder_dict)
...
return folder_list


I'm sure there is a possibility to get to submenu_data in your page 
template, isn't it?

HTH,
oliver