optilude <optil...@gmail.com> added the comment:

Here's a better, safer patch:

Index: repoze/zope2/z2bob.py
=============================================================
======
--- repoze/zope2/z2bob.py       (revision 11017)
+++ repoze/zope2/z2bob.py       (working copy)
@@ -313,6 +313,10 @@
                 # around the reversed-order bug will lose, sorry.
                 self.browser_default = True
                 default_page = path[-1]
+            else:
+                # Faux traversal, as we won't return a name so traversal will
+                # stop
+                parents.append(default)
 
             # we need to check if we actually have a default page in
             # next_name because if we try to do it in traverse, if we

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue64>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to