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

Dan Meszaros dm@petamem.com
Mon, 13 May 2002 12:42:33 +0200 (CEST)


hi,

i'm trying to do recursion in dtml, my first try was

<dtml-in "W3.objectValues(['Folder'])">
  <a href="<dtml-var id>"><dtml-var title></a><BR>
    <dtml-let run="_.getattr(_.getattr(???, id), 'recursion'))">
    <dtml-var run>
  </dtml-let>
</dtml-in>

but i don't know how to say 'self' in dtml (those three question-marks in getattr).
can someone help?

-dm