[Zope] DTML-LET problems

Ivan Cornell ivan.cornell@framestore.co.uk
Fri, 08 Dec 2000 15:24:49 +0000


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!