[Zope] How does DTML handle return variables from Python

Thomas B. Passin tpassin@mitretek.org
Tue, 18 Jun 2002 15:02:07 -0400


[McDonnell, Larry]
>
> I sorted of asked this question before but I am still hitting a wall. I am
> using this python code:
>
> context, container, script, traverse_subpath
> part_num = st1 + sub_type2
> return part_num
>
> But when "part_num" is returned it is blank. I test the script and
> "part_num" has a return value.
>

You have to include the two parameters in the script's parameter list, which
you will find in the Edit tab for the script.  Otherwise they don't get
passed to the script.

Cheers,

Tom P