[Zope-dev] problems with dtml-let

Federico Di Gregorio fog@mixadlive.com
Thu, 16 Mar 2000 17:41:09 +0100


hi,

	i have encountered this little problem: i have an sqlmethod
that does a select as follows:

select id, name from lingue where lingua_id = <dtml-sqlvar lingua type=int>

if i define lingua as an integer on the properties of document that does
the query or if i use something like:

<dtml-let lingua="32">
<dtml-in select_lingua_on_id>...</dtml-in>
</dtml-let>

i get the error:

Error Type: Bad Request
Error Value: ['lingua']

but if i do as follows:

<dtml-call "REQUEST.set('lingua', 32)">
<dtml-in select_lingua_on_id>...</dtml-in>

all goes fine...

what's my error?

thank you very much,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer                           fog@mixadlive.com
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
                           Don't dream it. Be it. -- Dr. Frank'n'further