[Zope-dev] problems with dtml-let
Phillip J. Eby
pje@telecommunity.com
Fri, 17 Mar 2000 10:41:22 -0500
At 09:54 AM 3/17/00 -0500, Evan Simpson wrote:
>----- Original Message -----
>From: Federico Di Gregorio <fog@mixadlive.com>
>> <dtml-let lingua="32">
>> <dtml-in select_lingua_on_id>...</dtml-in>
>> </dtml-let>
>
>dtml-let is designed to add local names, which aren't visible to called
>objects.
Not true. The problem is that "let" adds names to the DTML namespace
stack, and SQL Methods are not passed the existing DTML namespace stack;
they create a new stack. The way to do the above would be:
<dtml-let lingua="32">
<dtml-in "select_lingua_on_id(lingua=lingua)">...</dtml-in>
</dtml-let>
This is strictly a DTML-to-SQLMethod issue. DTML calling DTML (or any
other object which supports the isDocTemp=1 and (client,dict) calling
protocol will work.