[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/service/tests - test_service.py:1.3.6.1

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


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

Modified Files:
      Tag: adaptergeddon-branch
	test_service.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/browser/services/service/tests/test_service.py 1.3 => 1.3.6.1 ===
--- Zope3/src/zope/app/browser/services/service/tests/test_service.py:1.3	Wed Sep 24 16:43:10 2003
+++ Zope3/src/zope/app/browser/services/service/tests/test_service.py	Sun Nov  9 11:08:09 2003
@@ -17,10 +17,9 @@
 """
 
 import unittest
+from zope.app.tests import ztapi
 from zope.interface import Interface, implements
 from zope.publisher.browser import TestRequest
-from zope.component.view import provideView
-from zope.publisher.interfaces.browser import IBrowserPresentation
 from zope.app.tests.placelesssetup import PlacelessSetup, setUp, tearDown
 from zope.testing.doctestunit import DocTestSuite
 
@@ -43,8 +42,8 @@
             def __str__(self):
                 return self.context.url
             __call__ = __str__
-        provideView(IFoo, 'absolute_url', IBrowserPresentation, AU)
-        provideView(IFoo, 'registration.html', IBrowserPresentation, AU)
+        ztapi.browserView(IFoo, 'absolute_url', AU)
+        ztapi.browserView(IFoo, 'registration.html', AU)
 
         context = Foo('foo_url')
         request = TestRequest()




More information about the Zope3-Checkins mailing list