[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/

Jim Fulton jim at zope.com
Tue Oct 26 18:59:38 EDT 2004


Log message for revision 28265:
  

Changed:
  U   Zope3/trunk/src/zope/component/interfaces.py
  U   Zope3/trunk/src/zope/component/tests/test_api.py

-=-
Modified: Zope3/trunk/src/zope/component/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/component/interfaces.py	2004-10-26 22:59:33 UTC (rev 28264)
+++ Zope3/trunk/src/zope/component/interfaces.py	2004-10-26 22:59:37 UTC (rev 28265)
@@ -338,7 +338,7 @@
         The request must implement IPresentationRequest, and provides the
         desired view type.  The nearest one to the object is found.
         If a matching default view name cannot be found, raises
-        NotFoundError.
+        ComponentLookupError.
 
         If context is not specified, attempts to use
         object to specify a context.

Modified: Zope3/trunk/src/zope/component/tests/test_api.py
===================================================================
--- Zope3/trunk/src/zope/component/tests/test_api.py	2004-10-26 22:59:33 UTC (rev 28264)
+++ Zope3/trunk/src/zope/component/tests/test_api.py	2004-10-26 22:59:37 UTC (rev 28265)
@@ -528,15 +528,14 @@
 
     def testDefaultViewName(self):
         from zope.component import getService
-        from zope.exceptions import NotFoundError
         getService(Adapters).register((I1, I2), IDefaultViewName,
                                       '', 'sample_name')
-        self.assertRaises(NotFoundError,
+        self.assertRaises(ComponentLookupError,
                           getDefaultViewName,
                           ob, Request(I1))
         self.assertEquals(getDefaultViewName(ob, Request(I2)),
                           'sample_name')
-        self.assertRaises(NotFoundError,
+        self.assertRaises(ComponentLookupError,
                           getDefaultViewName,
                           ob, Request(I1))
 



More information about the Zope3-Checkins mailing list