[Zope] container and context in a python class???

Dieter Maurer dieter@handshake.de
Wed, 30 Oct 2002 20:20:34 +0100


Projekt01, Roger Ineichen writes:
 > Whats the similar to context and container in a python class?
Strictly speaking there are no such objects.

But, when you are in a method of your product, you have a "self"
and, usually, this is acquisition wrapped (this is not the case
in "__init__" and some other special methods).

In this case, you have "context" is similar to "self.aq_parent"
and "container" is "self.aq_inner.aq_parent".


Dieter