[Zope] Squeezing an extra object onto the acquisition path.

Chris Withers chrisw@nipltd.com
Thu, 26 Jul 2001 10:07:09 +0100


Erik Enge wrote:
> 
> Is there any way (maybe using __of__()) I can make this into
> 
>         /folderC/folderA/objectA
> 
> as far as the acquisition path is conserned?

Yeah, you can do something like this:

obj.aq_base.__of__(x.__of__(y.__of__(x)))

...to build any acquisition chain you want to.

But trust me, you probabyl don't want to do this, find an alternative solution
to your problem.

cheers,

Chris