[Zope] DTML parameter to Python script

Dieter Maurer dieter at handshake.de
Thu Oct 2 18:43:19 EDT 2003


Michael Bleijerveld wrote at 2003-10-2 16:26 +0200:
 > In the following DTML document I am trying to give the parameter
 > 'dtml-sequence-item''to the setDirectory python script.
 > This parameter doesn't return the right value. Instead it returns
 > '<&dtml-sequence-item>'.
 > 
 > What have I done wrong ?
 > 
 > <dtml-in "admin.objectIds('Local Directory')">
 >     <img src="/misc_/OFSP/Folder_icon.gif"> <a href=<dtml-var
 > expr="setDirectory('<&dtml-sequence-item>')">> <dtml-var sequence-item></a>
 > <br>
 > </dtml-in>

Do not nest "dtml" constructs such as "&dtml-XXX;" inside "dtml-var".

Read the Zope Book about the "prefix" attribute to "dtml-in".


Dieter



More information about the Zope mailing list