[Zope] returning a macro from a pythonscript
Gaute Amundsen
gaute at div.org
Fri Mar 2 06:29:27 EST 2007
On Friday 02 March 2007 11:20, Andreas Jung wrote:
> --On 2. März 2007 11:10:57 +0100 Gaute Amundsen <gaute at div.org> wrote:
> > I have tried many varieties, but I can't remember ever getting it to
> > work...
> >
> > A few googles shows me nothing either.
>
> returning a macro?
>
> -aj
Something like this:
foo = restrictedTraverse('/foo/bar/index.html/macros/mymacro')
return foo()
But of course foo is a list, and I can't see a way I can use any of the
contents..
G.
More information about the Zope
mailing list