ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved