Re: [Zope] Re: returning a macro from a pythonscript

2007-03-05 Thread Gaute Amundsen
On Friday 02 March 2007 17:06, Tres Seaver wrote: > Gaute Amundsen wrote: > > On Friday 02 March 2007 11:20, Andreas Jung wrote: > >> --On 2. März 2007 11:10:57 +0100 Gaute Amundsen <[EMAIL PROTECTED]> wrote: > >>> I have tried many varieties, but I can't remember ever getting it to > >>> work... >

Re: [Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread jerome prudent
I never thank I can do that with a macro. I always use the standard way, like Tonico wrote. I learnt something :) 2007/3/2, Tres Seaver <[EMAIL PROTECTED]>: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaute Amundsen wrote: > On Friday 02 March 2007 11:20, Andreas Jung wrote: >> --On 2. März

[Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaute Amundsen wrote: > On Friday 02 March 2007 11:20, Andreas Jung wrote: >> --On 2. März 2007 11:10:57 +0100 Gaute Amundsen <[EMAIL PROTECTED]> wrote: >>> I have tried many varieties, but I can't remember ever getting it to >>> work... >>> >>> A few

Re: [Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread Gaute Amundsen
On Friday 02 March 2007 13:35, jerome prudent wrote: > What do you want to do with your macro? > The usual. Have it display some html :) I return remplates from scripts all the time, and find it very usefull. return index_html(foo=bar) On Friday 02 March 2007 13:41, Tonico Strasser wrote: > Gau

[Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread Tonico Strasser
Gaute Amundsen schrieb: foo = restrictedTraverse('/foo/bar/index.html/macros/mymacro') You can use this macro in a template. Tonico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding