[Zope] returning a macro from a pythonscript

jerome prudent jprudent at gmail.com
Fri Mar 2 07:35:13 EST 2007


What do you want to do with your macro?

2007/3/2, Gaute Amundsen <gaute at div.org>:
>
> 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.
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>



-- 
J. Prudent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070302/97d69c35/attachment.htm


More information about the Zope mailing list