[Zope] Hooking into traversal

Jonothan Farr jfarr@real.com
Fri, 3 Mar 2000 17:17:36 -0800


> ZPublisher will try the following methods to traverse an object, in this
> order:
>
[etc]

One subtlety to be aware of is that __getitem__ seems to be called *after*
acquisition is given a crack for reasons that elude me. Since I've never been
able to get an explanation of how to use __getattr__ without blowing up the
acquisition machinery, this makes __bobo_traverse__ the only foolproof way that
I know of for hooking traversal. Someone please correct me if I am wrong.

-jfarr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~