[Zope-dev] Philosophy.__of__(Acquisition).questions
Pavlos Christoforou
pavlos@gaaros.msrc.sunysb.edu
Sun, 26 Sep 1999 17:19:33 -0400 (EDT)
On Sun, 26 Sep 1999, Evan Simpson wrote:
> I call '/a/b/c/x' and it prints 'c!'
>
> What the hell? According to the docs, shouldn't it print 'a!'?
>
> Ok, let's try making DTML Method y in c with body "<dtml-var x>". Same
> result. How about "<dtml-with x><dtml-var prop></dtml-with>"? Same
> thing.
>
> Help??
Your logic is correct. Just use DTML Document instead of DTML Method. DTML
Method is an 'attribute' of the containing object not a subobject. If I
remember correctly one of the reasons DTML Document was introduced was to
enable exactly what you descriped.
Pavlos