[Zope] Re: Using metal macros in a Python script

Evan Simpson evan@4-am.com
Fri, 02 May 2003 10:31:29 -0500

Gilles Lenfant wrote:
> The basic idea is to use ZPT macros from a script to build the content of
> the form.

Believe it or not, the most straightforward way to do this is probably 
the following "macro_user" ZPT:

<metal:x use-macro="options/macro" />

Your script would use it as follows:

txt = macro_user(some_template.macros['some_macro'])


Evan @ 4-am