[Zope] Expand macros in a file system based page template

Dieter Maurer dieter at handshake.de
Thu Mar 3 13:55:35 EST 2005


Hong Yuan wrote at 2005-3-3 17:19 +0800:
>When editing a page template directly in ZMI, there is an "Expand macros 
>when editing" option allowing me to see the page template source with 
>all macros expanded. This feature is quite handy in tring to understand 
>complex macros.
>
>However, if the page template is based on FSDV, this feature is no 
>longer available. How can I under this circumstance see the expanded 
>source code of page templates with macros?

You can call its "pt_render" method with argument "source=1".

-- 
Dieter


More information about the Zope mailing list