[Zope] passing parameters to DTML

Hans Sandsdalen hans-dated-1043060149.12b33a@spacetec.no
15 Jan 2003 11:55:48 +0100


Hi

I'm new to zope, and have a problem.

I have a loop like this:

<dtml-in expr="news.objectValues('DTML Document')" 
         sort="bobobase_modification_time" reverse size=5>

   <p><b><dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
<dtml-var title> (<dtml-var brukernavn html_quote null="">)</b><br>
      <p><dtml-var sequence-item html_quote newline_to_br></p>
   </p>
</dtml-in>

I will change this, so that the last line in the loop are deleted, and
the "title" is only a link to the "sequence-item". It works, but I would
like to use the attributes as well (html_quote and newline_to_br), and
also a heading and so on. How can I pass the sequence-item as a
parameter to a DTML method? Or does it have to be a script? How will
that look like (I don't know python yet)?

The code is a copy of the guest book in The Zope Book.

-- 
/ hans - http://go.to/tusenfrydveien32
/        http://www.spacetec.no/~hans/dfood.htm      
/---------------------------------------------
/ HANS = High Availability No Superman