[Zope-dev] __getattr__ and Acquisition

Johan Carlsson [Torped] johanc@torped.se
Mon, 23 Sep 2002 19:04:12 +0200


At 16:29 2002-09-23 +0000, Florent Guillaume said:
>You didn't look a the code I pointed to you. Look at CMFCore/Skinnable
>to be precise (not everything is to be used of course).
>
>* In __of__ you store the parent in a volatile attribute,
>* in __getattr__ you lookup the volatile attribute
>
>This works as long as your object is not used in several different
>acquisition contexts.

Hi Florent,
Would you care to elaborate on that last sentence? :-)
Could you give an example when it wouldn't work?
Best Regards,
Johan Carlsson



--=20
Torped Strategi och Kommunikation AB
Johan Carlsson
johanc@torped.se

Mail:
Birkagatan 9
SE-113 36  Stockholm
Sweden

Visit:
V=E4stmannagatan 67, Stockholm, Sweden

Phone +46-(0)8-32 31 23
Fax +46-(0)8-32 31 83
Mobil +46-(0)70-558 25 24
http://www.torped.se
http://www.easypublisher.com