[Zope] HELP! - DTML Variables

peter bengtson peter@grenna.net
Fri, 8 Dec 2000 15:14:24 -0000


You can't have DTML inside DTML.
The <dtml- stuff is to tell Zope that this is not HTML.

The correct answer is:
<dtml-in expr="find_employee(employee_id=AUTHETICATED_USER.getUserName())"
size=50 start=query_start>

cheers, peter
----- Original Message -----
From: Mohan Baro
To: zope@zope.org
Sent: Friday, December 08, 2000 1:53 PM
Subject: [Zope] HELP! - DTML Variables


In the code segment :

<dtml-in expr="find_employee(employee_id='XXXXXXX')" size=50
start=query_start>
   <dtml-if sequence-start>


How do I declare a variable such as

intEmployee='123456'


so that I can use it as:

<dtml-in expr="find_employee(employee_id=<dtml-var intEmployee>)" size=50
start=query_start>
   <dtml-if sequence-start>


What I am really tring to do is:

<dtml-in expr="find_employee(employee_id='<dtml-var
"AUTHETICATED_USER.getUserName()">')" size=50 start=query_start>
   <dtml-if sequence-start>

But I keep on getting syntax errors.



Mohan.