[Zope-dev] Specialists and __bobo_traverse__
Roch'e Compaan
roche@ybm.co.za
Tue, 16 Jan 2001 19:28:23 +0200
I'm still lost as to when __bobo_traverse__ is checked for object traversal
and when not.
I have very simple piece of SkinScript: WITH SELF COMPUTE __bobo_traverse__
= traversal_method. Looking at the traverse method in BaseRequest.py it
looks to me as if an object is always checked if it has a __bobo_traverse__
method but this is not what is happening.
If I manually type in a url, say path.to.specialist/dataskin1, where
dataskin1 exists, my traversal_method is not called. When I type in
path.to.specialist/dataskin2, where dataskin2 does not exist then my
traversal_method is called. Noticing that the traversal_method is called
when an object can not be found I tried
path.to.specialist/dataskin1/dataskin2, where dataskin1 is in the
specialist's rack but dataskin2 is in another specialist's rack and will
therefor not be found. In this case my traversal_method was not called. If
it was then I could retrieve it from the appropriate specialist.
I hope the above is clear because I'm somewhat desperate at the moment. If
I'm trying the impossible, a simple "forget about it" will also do.
Roché