[Zope] what is the python's 'self' equivalent in dtml?
hans
hans@beehive.de
Mon, 13 May 2002 13:10:41 +0100
Dan Meszaros wrote:
> 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?
check http://www.zope.org/Documentation/ZopeBook/AppendixB.stx
for this()
--
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin (software developer) hans@beehive.de
beehive elektronische medien GmbH http://www.beehive.de
phone: +49 30 847-82 0 fax: +49 30 847-82 299