[Zope] Howto use getattr() without acquisition?
Dieter Maurer
dieter@handshake.de
Wed, 1 Jan 2003 20:49:38 +0100
Gilles Lenfant wrote at 2002-12-31 18:02 +0100:
> I had a similar problem some weeks ago and Dieter Maurer gave me the
> enlightenment.
>
> I think you should use getattr(object.aq_explicit, 'someattr')
"aq_explicit" is not completely safe.
It does not prevent acquisition but only restricts it (to "aq_self").
I filed a feature request with solution to Zope's collector with
a better approach:
<http://collector.zope.org/Zope/742>
Dieter