[Zope-dev] Turning acquisition off selectively.
Jim Fulton
jim@digicool.com
Fri, 08 Dec 2000 10:57:48 -0500
Chris Withers wrote:
>
> morten@esol.no wrote:
> >
> > That is, with a simple method, and not disabling the Acqusition class,
> > something like self.aq_disabled('attribute') .
>
> So kindof the inverse of using Aquisition.Explicit and using the
> aq_acquire method?
>
> What you describe would be really cool...
>
> The only workaround for now is to use calls to ac_acquire() and provide
> a filter function, but this doesn't help when other code that you have
> no control over accesses an attribute that you'd rather not have
> acquired :-(
I'm inclined to think that in some future version of Zope, we
should switch to making explicit acquisition the norm.
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org