|
|
 |
zope-List
Re: [Zope] Howto use getattr() without acquisition?
by Dieter Maurer other posts by this author
Jan 1 2003 7:49PM messages near this date
Re: [Zope] Howto use getattr() without acquisition?
|
Re: [Zope] Howto use getattr() without acquisition?
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
_______________________________________________
Zope maillist - Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Gilles Lenfant
Dieter Maurer
Chris Withers
|
|
|
 |
|