[Zope] DTML Question

Kevin Carlson khcarlso@bellsouth.net
Tue, 14 Jan 2003 18:11:02 -0500


It's printing exactly what you're telling it to print. "[lang]".  I 
think the <dtml-call> should be changed to read

   <dtml-call "REQUEST.set('approved', lang)">

Kevin

beno wrote:

> At 10:51 AM 1/14/2003 -0500, you wrote:
>
>> [ beno]
>> > I know one cannot nest DTML objects, but the below lets you
>> > know what I'm
>> > trying to accomplish. What is the correct syntax?
>> >
>> > <dtml-let folder="<dtml-var id>">
>> >
>>
>> <dtml-let folder=id>
>
>
> That simple. Thanks. But I'm still not home free. Here's my code:
>
> <dtml-let lang="REQUEST.get('HTTP_ACCEPT_LANGUAGE')">
>  <dtml-in objectValues>
>   <dtml-let folder=id>
>    <dtml-if expr="folder[2:]==lang[2:]">
>     <dtml-call "REQUEST.set('approved', '[lang]')">
>     <dtml-var approved>
>    </dtml-if>
>   </dtml-let>
>  </dtml-in>
> </dtml-let>
>
> It prints this: *[lang]*. I need it to print the value of the 
> variable. How do I do that?
> TIA,
> beno
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>