[Zope-dev] Turning acquisition off[Zope-dev] Turning acquisition
off
Ken Manheimer
klm@digicool.com
Wed, 6 Dec 2000 10:03:20 -0500 (EST)
On Wed, 6 Dec 2000 morten@esol.no wrote:
> Does anyone know how to disable acqusition ?
>
> That is, with a simple method, and not disabling the Acqusition class,
> something like self.aq_disabled('attribute') .
I believe one way is self.aq_base['attribute']. aq_base gets the
unwrapped object (what got __of__'ed). If you're not sure the thing
is acquisition-wrapped in the first place, you'd probably want to check
for the existing of the 'aq_base' attribute before using it...
Ken Manheimer
klm@digicool.com