[Zope] Re: returning a macro from a pythonscript

Tonico Strasser contact_tonico at yahoo.de
Fri Mar 2 07:41:07 EST 2007


Gaute Amundsen schrieb:
> foo = restrictedTraverse('/foo/bar/index.html/macros/mymacro')

You can use this macro in a template.

<div metal:use-macro="foo"/>

Tonico



More information about the Zope mailing list