[Zope] Rules on passing variables from dmtl-python-dtml
McDonnell, Larry
lmcdonnell@protonenergy.com
Wed, 11 Sep 2002 07:56:14 -0400
Hi,
I need to understand the rules in passing variables between dtml and python.
All I am doing at this point is converting an integer to a string. In this
format when I test it I get the results I was looking for.
Bound Names
context, container, script, traverse_subpath
# Example code:
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE = request.RESPONSE
y='0'+str(x)
return y
But I'm lost on the passing.
<dtml-call "int_to_string(num)">
**<dtml-var y>**
Any pointer would be a great help, thanks.
Larry McDonnell
Proton Energy Systems
50 Inwood Rd.
Rocky Hill, CT 06067
(860) 571-6533 ext. 531
Email:lmcdonnell@protonenergy.com
www.protonenergy.com