[Zope] what is the python's 'self' equivalent in dtml?

Dirk Datzert Dirk.Datzert@rasselstein-hoesch.de
Mon, 13 May 2002 13:03:44 +0200


Hi,

as far as I know it is called "this()"

<dtml-var "this().title">

Regards
Dirk


----- Original Message -----=20
From: "Dan Meszaros" <dm@petamem.com>
To: <zope@zope.org>
Sent: Monday, May 13, 2002 12:42 PM
Subject: [Zope] what is the python's 'self' equivalent in dtml?


> hi,
>=20
> i'm trying to do recursion in dtml, my first try was
>=20
> <dtml-in "W3.objectValues(['Folder'])">
>   <a href=3D"<dtml-var id>"><dtml-var title></a><BR>
>     <dtml-let run=3D"_.getattr(_.getattr(???, id), 'recursion'))">
>     <dtml-var run>
>   </dtml-let>
> </dtml-in>
>=20
> but i don't know how to say 'self' in dtml (those three question-marks =
in getattr).
> can someone help?
>=20
> -dm
>=20
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20