[Zope] "this" inside rendered DTML Method

Alexander Staubo alex@mop.no
Fri, 23 Jul 1999 21:48:23 +0200


Question: Inside a DTML Method "foo" being included (through #var) in an
DTML Document "bar", what should the "this" function evaluate to?

foo looks like this:

  <!--#var "this().title_or_id()"-->

and bar like this:

  <!--#var foo-->

I say it should evaluate to the DTML Document. But it seems that it
evaluates to the parent folder.

It doesn't make sense. How, then, can I access the document including
the DTML Method?

Zope 2.0.0a4.

-- 
Alexander Staubo             http://www.mop.no/~alex/
"`This must be Thursday,' said Arthur to himself, sinking low over
his beer, `I never could get the hang of Thursdays.'"
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_