[Zope] Calling a Script from ZPT

Andreas Jung lists at zopyx.com
Mon Sep 18 09:45:44 EDT 2006



--On 18. September 2006 06:43:46 -0700 Ferhat Ayaz <ferhatayaz at yahoo.com> 
wrote:

> Hi,
>
> a quick and newbie question:
>
> How can I call a Script (Python) within a page
> template. I'm using the 'define' tag:
>
> <tal:contain
>  define="no_matter_var
> python:context.mycall(myParam)"/>
>
> Is there a more serious way to do this?
>

That's the only way when you have to pass parameters to the method.
Otherwise call it through context/mycall.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060918/ec7987a9/attachment.bin


More information about the Zope mailing list