[Zope] manage_AddProduct for ZPT

Tino Wildenhain tino@wildenhain.de
Mon, 06 Jan 2003 00:29:57 +0100


Hi benno,

--On Sonntag, 5. Januar 2003 06:25 -0400 beno <zope@thewebsons.com> wrote:

> Hi;
> I would like to do the equivalent of this:
>
> <dtml-call "manage_addProduct['OFSP'].manage_addFolder(id, title)">
>
> in ZPT to create a page on-the-fly. Can it be done?
> TIA,

Although it _could_ be done, it schould not be done.
Unlike DTML, ZPT was created for strict as possible
diversion of logic and content. Since manage_add* is
logic, you should put it into a python script
and call it during template publishing (if it outputs
something essential as content) or before
you call the template.

Regards
Tino