[Zope-dev] Turning acquisition off selectively.
Chris Withers
chrisw@nipltd.com
Wed, 06 Dec 2000 11:31:37 +0000
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 :-(
cheers,
Chris
PS:
http://www.zope.org/Members/michel/Projects/Interfaces/AcquisitionWrappedObject