Passing a parameter from a TAL statement to a python script
12 Feb
2002
12 Feb
'02
12:28 p.m.
Hi I am using a python script to return some data from a TAL statement. How do I pass a parameter to the script, and how does the python script read it in? <span tal:content="structure here/myScript.py"></span>
12 Feb
12 Feb
12:37 p.m.
New subject: [Zope] Passing a parameter from a TAL statement to a python script
Tom Nixon wrote:
Hi
I am using a python script to return some data from a TAL statement. How do I pass a parameter to the script, and how does the python script read it in?
<span tal:content="structure here/myScript.py"></span>
<span tal:content="structure python:here['myScript.py'](your_param=1)"></span> cheers, Chris
8820
Age (days ago)
8820
Last active (days ago)
1 comments
2 participants
participants (2)
-
Chris Withers -
Tom Nixon