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

dreamcatcher at codespeak.net dreamcatcher at codespeak.net
Wed Jul 28 22:15:11 MEST 2004


Author: dreamcatcher
Date: Wed Jul 28 22:15:11 2004
New Revision: 5763

Modified:
   z3/Five/branch/dc-experiments/traversable.py
Log:
Researching a bit more shows that return None is actually the right thing.

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:15:11 2004
@@ -42,10 +42,10 @@
         This method is called by __bobo_traverse___ when Zope3-style
         ITraverser traversal fails.
 
-        By default, we raise a KeyError error. This should be enough
+        By default, we return None. This should be enough
         as far as Zope 2 is concerned to trigger acquisition.
         """
-        raise KeyError, name
+        return None
 
     def __bobo_traverse__(self, REQUEST, name):
         """Hook for Zope 2 traversal


More information about the z3-checkins mailing list