[Zope-dev] __getattr__ and Acquisition
Dieter Maurer
dieter@handshake.de
Wed, 25 Sep 2002 20:23:58 +0200
Lennart Regebro writes:
> ...
> Because that's not how it's supposed to work. You can override __getattr__
> to have special magick attributes. Acquisition is not a special magick
> attribute. __getattr__ is only called when an attribute aren't found in a
> "normal" way, and in the context of Zope, Acquicistion would be regarded as
> normal. :-)
I had written the exact same statement some time ago. Nevertheless, it is
wrong :(
Now, I know it better:
"__getattr__" is used before acquisition comes into play.
Dieter