[ZPT] How to call a python script ...

Evan Simpson evan@digicool.com
Thu, 14 Jun 2001 13:10:07 -0400


Lynn Walton wrote:

> How does the call to the script look in the MasterTemplate  AND how
> does the script retrieve the value of someValue set in the page
> template?


The most straightforward way would be to write something like:

<span tal:define="script_path here/script_folder; global html_chunk 
python:script_path.a_script(someValue)">

You don't really need to define the script_path separately, but it might 
be easier if some of the path elements contain periods or other 
troublesome characters.

Cheers,

Evan @ digicool