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


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

Reply via email to