[Zope] getPhysicalRoot and <Special Object Used to Force
Acquisition>
Chris Withers
chrisw@nipltd.com
Sat, 02 Feb 2002 15:15:17 +0000
Gabriel Genellina wrote:
>
> self=self.getPhysicalRoot()
>
> When I printed type(self.getPhysicalRoot), I got: <Special Object Used to
> Force Acquisition>' (what's that???)
Urm, I think you meant type(self.getPhysicalRoot())
> But when I tried the original code again to post here, it worked fine (as
> usual!) and now type(self.getPhysicalRoot)=type <'Python Method'> (as
> should be, I guess)
If you get the object through a non-Acquisition wrapped context, you'll get
<Special Object Used to Force Acquisition>, if you get it through an Acquisition
wrapped context, you'll get what you expect.
> I swear I didnt change anything but a few lines on my product!!!
And what were those lines ;-)
cheers,
Chris