[Zope] Passing variables from Python

McDonnell, Larry lmcdonnell@protonenergy.com
Fri, 14 Jun 2002 13:43:57 -0400


Hi,

I must be blind in one and can't see out the other. Can anyone point me to a
reference or example how dtml doc receive a new variable from python.

<dtml-let pn="''">
<dtml-call concat_sub_type_to_part_num(st1,sub_type2,pn)>
<dtml-var st1>st1<dtml-var sub_type2>st2

<dtml-var pn> pn
</dtml-let>

The script is as suggested by Kevin


# Example code:

# Import a standard function, and get the HTML request and response objects.
pn = "%s%s" % (st1, sub_type2)
return pn

When I test the variable "pn" I see the results I am looking for by in the
DMTL doc it is blank. I know it is a namespace issue. I just cannot figure
out the syntax.
Thanks in adavnce.

Larry McDonnell

Proton Energy Systems
50 Inwood Rd.
Rocky Hill, CT 06067
(860) 571-6533 ext. 531
Email:lmcdonnell@protonenergy.com
www.protonenergy.com