[Zope] Re: Trouble with dtml-with

Roger Fisher rlfisher@sprynet.com
Sat, 16 Nov 2002 13:36:29 -0800


Sorry... I am not seeing this.  Method1 (which is contained in FolderC)
wishes to call Method2 which is in FolderB.  FolderB is adjacent to FolderC
(FolderC contains Method1).  In my previous coding that hasn't been on the
normal acquisition path:  Method1 can't "see" Method2 unless I bring FolderB
into the namespace.

Thanks for your patience with me.

-----Original Message-----
From: Dieter Maurer [mailto:dieter@handshake.de]
Sent: Saturday, November 16, 2002 11:51 AM
To: rlfisher@sprynet.com
Cc: zope@zope.org
Subject: RE: [Zope] Re: Trouble with dtml-with


Roger Fisher writes:
 > Naturally, the first thing I tried was <dtml-with FolderB> which returned
a
 > KeyError on FolderB.
 > ...
 >  > I cannot figure out how to <dtml-with> to get from Method1 (in
FolderC)
 > to
 >  > code in FolderB.  FolderB is parallel to Method1's parent (FolderC).
It is more important for what object you call "Method1" than
where is lives (the latter is usually irrelevant).

When you call "Method1" for an object in "FolderC", then it will find
"FolderB" (through acquisition).


Dieter