[z3-checkins] r5762 - z3/Five/branch/dc-experiments

dreamcatcher at codespeak.net dreamcatcher at codespeak.net
Wed Jul 28 22:05:12 MEST 2004


Author: dreamcatcher
Date: Wed Jul 28 22:05:11 2004
New Revision: 5762

Modified:
   z3/Five/branch/dc-experiments/traversable.py
Log:
Changed to raise KeyError always. Raising notFound would prevent acquisition it seems.

Modified: z3/Five/branch/dc-experiments/traversable.py
==============================================================================
--- z3/Five/branch/dc-experiments/traversable.py	(original)
+++ z3/Five/branch/dc-experiments/traversable.py	Wed Jul 28 22:05:11 2004
@@ -40,13 +40,12 @@
         """Method hook for fallback traversal
 
         This method is called by __bobo_traverse___ when Zope3-style
-        ITraverser traversal fails. By default, we do what Zope 2 would do,
-        raise a NotFound error.
+        ITraverser traversal fails.
+
+        By default, we raise a KeyError error. This should be enough
+        as far as Zope 2 is concerned to trigger acquisition.
         """
-        try:
-            REQUEST.RESPONSE.notFoundError("%s " % name)
-        except AttributeError:
-            raise KeyError, name
+        raise KeyError, name
 
     def __bobo_traverse__(self, REQUEST, name):
         """Hook for Zope 2 traversal


More information about the z3-checkins mailing list