[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests -
test_containertraverser.py:1.9
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:11:32 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv31641/src/zope/app/container/tests
Modified Files:
test_containertraverser.py
Log Message:
The provideView method on the global presentation service requires a
sequence of factories.
=== Zope3/src/zope/app/container/tests/test_containertraverser.py 1.8 => 1.9 ===
--- 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 Fri Nov 21 12:11:31 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