[Zope] problem: traversable but no aq_chain

Dieter Maurer dieter@handshake.de
Sun, 2 Feb 2003 19:24:23 +0100


Sean K wrote at 2003-2-2 02:50 -0800:
 > ....
 > The main product contains a __getitem__ method, as
 > does the descriptions product.
 > 
 > I can traverse to a description however a call to a
 > mthod of the description product that returns the
 > aq_chain displays as [,,,].
Your "__getitem__" must wrap the object into the context of
the parent:

    def __getitem__(self,key):
      return <get at the object>.__of__(self)



Dieter