[Zope-dev] __getattr__ and Acquisition

Lennart Regebro lennart@torped.se
Mon, 23 Sep 2002 00:18:48 +0200


From: "Andreas Kostyrka" <andreas@kostyrka.priv.at>
> I've just discovered, that Acquisition does not work with __getattr__,
> right?

That depends on what you mean with "does not work". :-)

> (I assume that this is so because something like getattr(mybase,attr) is
> called during the acquisition process to prevent infinite recursion.)
> 
> Anyway to get around that? (To basically get a wrapped self from
> somewhere?)

That's what self usually is... :-)

I think you need to answer a couple of questions:
1. What is it you want to do?
2. How are you trying to do it?
3. What is happening when you try to do it?

It's hard to give solutions when you don't know the problem. :-)

Best Regards

Lennart Regebro
http://www.easypublisher.com/