[Zope3-checkins] CVS: Zope3/src/zope/app/menu/browser - tests.py:1.4

Philipp von Weitershausen philikon at philikon.de
Wed Mar 17 13:24:56 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/menu/browser
In directory cvs.zope.org:/tmp/cvs-serv24200/app/menu/browser

Modified Files:
	tests.py 
Log Message:


The traversing machinery now uses views providing an interface
(IPublishTraverse or subclassing interfaces) instead of views named
"_traverse".




=== Zope3/src/zope/app/menu/browser/tests.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/menu/browser/tests.py:1.3	Mon Mar 15 15:42:06 2004
+++ Zope3/src/zope/app/menu/browser/tests.py	Wed Mar 17 13:24:25 2004
@@ -15,23 +15,24 @@
 
 $Id$
 """
-
 import unittest
 
-from zope.app.tests import ztapi
 from zope.interface import Interface, implements
-
 from zope.component import getServiceManager
-from zope.app.site.tests.placefulsetup import PlacefulSetup
 
-from zope.app.menu.browser import MenuAccessView
-from zope.publisher.browser import TestRequest
-from zope.publisher.interfaces.browser import IBrowserView
-from zope.app.publisher.interfaces.browser import IBrowserMenuService
-from zope.app.publication.traversers import TestTraverser
 from zope.security.management import newSecurityManager
 from zope.security.checker import defineChecker, NamesChecker, CheckerPublic
 from zope.security.proxy import ProxyFactory
+
+from zope.publisher.browser import TestRequest
+from zope.publisher.interfaces.browser import IBrowserView, IBrowserPublisher
+
+from zope.app.tests import ztapi
+from zope.app.site.tests.placefulsetup import PlacefulSetup
+
+from zope.app.publisher.interfaces.browser import IBrowserMenuService
+from zope.app.menu.browser import MenuAccessView
+from zope.app.publication.traversers import TestTraverser
 from zope.app.site.interfaces import ISimpleService
 
 def d(title, action):
@@ -81,7 +82,7 @@
         defineService('BrowserMenu', IBrowserMenuService)
         provideService('BrowserMenu', Service())
         ztapi.browserView(I, 'a3', V)
-        ztapi.browserView(None, '_traverse', TestTraverser)
+        ztapi.browserViewProviding(None, IBrowserPublisher, TestTraverser)
         defineChecker(C, NamesChecker(['a1', 'a2', 'a3', '__call__'],
                                       CheckerPublic,
                                       abad='waaa'))




More information about the Zope3-Checkins mailing list