Re: [Zope] Difference between "id" and id ?
For some objects, id is a simple property. In others, it is a method. <dtml-var id> will display id, if it is a property *or* call it if it is a method. <dtml-var "id"> will only display the contents of id. In order to call it, you would have to do: <dtml-var "id()"> Kevin -----Original Message----- From: flight@mathi.uni-heidelberg.de <flight@mathi.uni-heidelberg.de> To: zope@zope.org <zope@zope.org> Date: Tuesday, November 02, 1999 10:17 AM Subject: [Zope] Difference between "id" and id ?
Is it okay that
<dtml-var id> and <dtml-var "id">
have different results ? I'm trying the following code in a DTML method inside a ZClass, but the dtml-if fails since <dtml-var "id"> is empty. <dtml-var id> OTOH shows the expected result, the id of the Seite object:
<table> <dtml-let selfid=id> <dtml-in "PARENTS[1].objectValues('Seite')"> <tr><td><dtml-if "id==selfid"><dtml-var "PARENTS[-2].Images.littlearrow"></dtml-if></td><td><a href="../<dtml-var id>"><dtml-var font2><dtml-var title_or_id></font></a></td></tr> </dtml-in> </dtml-let> </table>
participants (1)
-
Kevin Dangoor