[Zope] DTML-LET problems

Mohan Baro mcbaro@uwimona.edu.jm
Fri, 8 Dec 2000 10:51:52 -0500


Thanks Ivan & Peter,

It work!.


Mohan.


-----Original Message-----
From: icornell@gate.fs-cfc.co.uk [mailto:icornell@gate.fs-cfc.co.uk]On
Behalf Of Ivan Cornell
Sent: Friday, December 08, 2000 10:25 AM
To: Mohan Baro
Cc: zope@zope.org
Subject: Re: [Zope] DTML-LET problems


Mohan Baro wrote:

> Why doesn't the following code work?
> How do I achieve the desired functionality?
>
> <dtml-let the_current_user="<dtml-var
"AUTHENTICATED_USER.getUserName()">">
>     <dtml-var the_current_user>
> </dtml-let>
>
> Mohan.

You can't embed dtml within dtml. Try:
<dtml-let the_current_user="AUTHENTICATED_USER.getUserName()">
    <dtml-var the_current_user>
</dtml-let>

Ivan

PS, I would have replied to your previous post if it hadn't been in HTML!


_______________________________________________
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 )