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

Lynn Walton waltonl@franklin.edu
Wed, 13 Jun 2001 01:16:17 -0500


Can someone show me how I could achieve the following?

I'm thinking I might wish to have in a master template (macro defined on
html tag)  make a call to a python script which will generate a massive
amount of
html code which needs to be dependent on 3 variables passed into the
script.

MasterTemplate  contains call to script that yields complicated html
that varies based on some values passed in.
PageTemplates which use the main macro defined in the html tag of
MasterTemplate declare/set the values that I need to have passed in the
script ... presumably by putting something like  <div tal:define="global
someValue string:Fred"></div>  in the top of the page.
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?

Thanks,
Lynn