[Zope] Using metal macros in a Python script

Gilles Lenfant gilles@pilotsystems.net
Fri, 2 May 2003 11:32:11 +0200


Hi, I'm actually making a form which widgets list and types are built
dynamically.
The basic idea is to use ZPT macros from a script to build the content of
the form.
I found the way to get ZPT macros in Pyhton scripts...

macro = some_template.macros['some_macro']

But I'm stuck hacking deeper into the metal logic. I need now a way to
execute these macros, feed them with variables (here, options, foo, bar...)
and fill the slots.

Has any of you some hints or examples to achieve this?

Many thanks in advance.

--Gilles