Re: [Zope] DTML-LET problems

2000-12-08 Thread Ivan Cornell

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  -  [EMAIL PROTECTED]
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 )




RE: [Zope] DTML-LET problems

2000-12-08 Thread Mohan Baro

Thanks Ivan  Peter,

It work!.


Mohan.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ivan Cornell
Sent: Friday, December 08, 2000 10:25 AM
To: Mohan Baro
Cc: [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] DTML-LET problems

2000-12-08 Thread Mohan Baro

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.

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] DTML-LET problems

2000-12-08 Thread Andy Dawkins

Mohan
try this,

dtml-let the_current_user="REQUEST.AUTHENTICATED_USER.getUserName()"
dtml-var the_current_user
/dtml-let

-AndyD

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mohan
 Baro
 Sent: 08 December 2000 14:41
 To: [EMAIL PROTECTED]
 Subject: [Zope] DTML-LET problems
 
 
 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.
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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 )
 

___
Zope maillist  -  [EMAIL PROTECTED]
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 )