RE: [Zope] Rules on passing variables from dmtl-python-dtml
11 Sep
2002
11 Sep
'02
1:03 p.m.
[ McDonnell, Larry]
# 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>**
What is wrong with <dtml-var "int_to_string(num)"> to get the same result? If you really need to pass a variable around, use dtml-let: <dtml-let y="int_to_string(num)"> <dtml-do-something y> <dtml-do-something-else y> </dtml-let> Cheers, Tom P
8608
Age (days ago)
8608
Last active (days ago)
0 comments
1 participants
participants (1)
-
Passin,Thomas B. (Tom)