Sorry, my __bobo_traverse__ method is working, the
PARENTS stack is exactly as I would hope, with my module as the parent of the
category, rather than the root.
Here's the whole story:
header.html (dtml method)
<dtml-if expr="meta_type ==
'Category'"> <!-- true in cases of url like
Now, what I hope to happen is that the dtml-with
would bind to the /blah/category folder, and therefore be able to find
header.html. However, somehow it's getting the /category folder instead,
which doesn't have header.html.
Anyone understand why this is
----- Original Message -----
Sent: Sunday, December 03, 2000 8:08
Subject: [Zope] siblings of me, rather
than of parent
My site has two main classes of objects, Modules
(and their derivatives), and Categories. A normal setup might look
something like this:
I need to handle URLs like
/root/blab/weather. The problem is that I need weather.__of__(blab) on
the stack, rather than weather.__of__(root) on top. This is because blab
(in some cases) overrides default behaviors from root.
I thought the proper way to do this was by adding
a __bobo_traverse__ method to my Module, like this:
def __bobo_traverse__(self, REQUEST,
ob = getattr(parent,
if ob.meta_type ==
But that doesn't seem to change anything,
although it does perform the return (and doesn't throw any
Basically, I'm trying to offer my siblings as if
they were my children, so if they fail to offer something, it will be looked
for in me, rather than my parent.