[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests - test_containertraverser.py:1.8.30.1

Jim Fulton cvs-admin at zope.org
Sun Nov 9 11:08:46 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv15349/src/zope/app/container/tests

Modified Files:
      Tag: adaptergeddon-branch
	test_containertraverser.py 
Log Message:
Created a global presentation service that replaces the 
global view, resource, and skin services.

Now look up presentation components by adapting from a request type,
rather than adapting to a presentation type.





=== Zope3/src/zope/app/container/tests/test_containertraverser.py 1.8 => 1.8.30.1 ===
--- Zope3/src/zope/app/container/tests/test_containertraverser.py:1.8	Sat Jun  7 02:37:22 2003
+++ Zope3/src/zope/app/container/tests/test_containertraverser.py	Sun Nov  9 11:08:15 2003
@@ -19,7 +19,7 @@
 import unittest
 from zope.component.tests.request import Request
 from zope.component import getService
-from zope.app.services.servicenames import Views
+from zope.app.services.servicenames import Presentation
 from zope.app.container.traversal import ContainerTraverser
 from zope.interface import Interface, implements
 from zope.exceptions import NotFoundError
@@ -72,7 +72,8 @@
         req = Request(I, '')
 
         T = ContainerTraverser(c, req)
-        getService(None,Views).provideView(IContainer, 'viewfoo', I, [View])
+        getService(None, Presentation).provideView(
+            IContainer, 'viewfoo', I, [View])
 
         self.failUnless(T.publishTraverse(req,'viewfoo').__class__ is View )
         self.failUnless(T.publishTraverse(req,'foo') is foo)




More information about the Zope3-Checkins mailing list