[Zope] Acquisition: DTML Methods vs Documents

Rik Hoekstra rik.hoekstra@inghist.nl
Fri, 5 Jan 2001 17:02:11 +0100


> On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
> > http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
> > saved my life.
>
>    Thanks. I'be read it yesterday. It does not help much because it does
> not answer my question:
>
>    If I call http://machine:port/top/middle/AFolder/ADocument (in terms of
> this HOWTO), and ADocument calls <dtml-var AMethod>, what is acquisition
> path for AMethod?

Oleg,

what might come handy in your case is the howto "Shane's Aquisition
Understander" at

 http://www.zope.org/Members/chrisw/showaq

it'll help you visualize the acquisition path from your document.

You may also want to look at my howto Changing Contexts in Zope
http://www.zope.org/Members/Hoekstra/ChangingZopeContexts

Or Jim's acquisition algebra from a Python point of view of these matters:

http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/index.html


hth

Rik