[Zope] Overriding traversal

Evan Simpson evan@4-am.com
Thu, 3 Feb 2000 08:19:16 -0600


----- Original Message -----
From: Jacob Gorm Hansen <jg@ioi.dk>
> Assuming I have a database like this:
>
> Folder1
> myObject
> myProduct
> <nothing here>
>
> How can I make myProduct's __bobo_traverse__ return myObject?

Is myObject a sibling of myProduct?  You can return 'self.myObject' from
__bobo_traverse__, but then it will just act like another copy of myObject
and will be difficult to manage unless you do some contortions.

What are the circumstances under which you want to do this?  Why?

Cheers,

Evan @ 4-am