[Zope3-checkins] CVS: Zope3/src/zope/app/tests - placelesssetup.py:1.7.6.1 setup.py:1.7.6.1

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


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

Modified Files:
      Tag: adaptergeddon-branch
	placelesssetup.py setup.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/tests/placelesssetup.py 1.7 => 1.7.6.1 ===
--- Zope3/src/zope/app/tests/placelesssetup.py:1.7	Sun Sep 21 13:33:29 2003
+++ Zope3/src/zope/app/tests/placelesssetup.py	Sun Nov  9 11:08:29 2003
@@ -17,6 +17,7 @@
 $Id$
 """
 
+from zope.app.tests import ztapi
 from zope.component.tests.placelesssetup \
     import PlacelessSetup as CAPlacelessSetup
 from zope.app.component.tests.placelesssetup \
@@ -28,8 +29,6 @@
 from zope.app.container.tests.placelesssetup \
     import PlacelessSetup as ContainerPlaclessSetup
 from zope.app.security._protections import protect
-from zope.component.view import provideView
-from zope.publisher.browser import IBrowserPresentation
 from zope.app.browser.absoluteurl import AbsoluteURL
 
 class PlacelessSetup(CAPlacelessSetup,
@@ -48,7 +47,7 @@
         # Register app-specific security declarations
         protect()
 
-        provideView(None, 'absolute_url', IBrowserPresentation, AbsoluteURL)
+        ztapi.browserView(None, 'absolute_url', AbsoluteURL)
         
 
 ps = PlacelessSetup()


=== Zope3/src/zope/app/tests/setup.py 1.7 => 1.7.6.1 ===
--- Zope3/src/zope/app/tests/setup.py:1.7	Sun Sep 21 13:33:30 2003
+++ Zope3/src/zope/app/tests/setup.py	Sun Nov  9 11:08:29 2003
@@ -18,8 +18,8 @@
 
 import zope.component
 from zope.app import zapi
+from zope.app.tests import ztapi
 from zope.component.adapter import provideAdapter
-from zope.component.view import provideView
 from zope.interface import classImplements
 
 #------------------------------------------------------------------------
@@ -51,7 +51,7 @@
 from zope.app.traversing.adapters import Traverser, RootPhysicallyLocatable
 from zope.app.location import LocationPhysicallyLocatable
 from zope.app.traversing.namespace import etc, provideNamespaceHandler
-from zope.publisher.interfaces.browser import IBrowserPresentation
+
 def setUpTraversal():
     provideAdapter(None, ITraverser, Traverser)
     provideAdapter(None, ITraversable, DefaultTraversable)
@@ -66,10 +66,8 @@
     # set up etc namespace
     provideNamespaceHandler("etc", etc)
 
-    provideView(None, "absolute_url", IBrowserPresentation,
-                AbsoluteURL)
-    provideView(IContainmentRoot, "absolute_url", IBrowserPresentation,
-                SiteAbsoluteURL)
+    ztapi.browserView(None, "absolute_url", AbsoluteURL)
+    ztapi.browserView(IContainmentRoot, "absolute_url", SiteAbsoluteURL)
 
 #------------------------------------------------------------------------
 # Use registration




More information about the Zope3-Checkins mailing list