[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/ftests - test_vhosting.py:1.9.6.1

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


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

Modified Files:
      Tag: adaptergeddon-branch
	test_vhosting.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/traversing/ftests/test_vhosting.py 1.9 => 1.9.6.1 ===
--- Zope3/src/zope/app/traversing/ftests/test_vhosting.py:1.9	Sun Sep 21 13:33:46 2003
+++ Zope3/src/zope/app/traversing/ftests/test_vhosting.py	Sun Nov  9 11:08:30 2003
@@ -17,12 +17,11 @@
 """
 
 import unittest
+from zope.app.tests import ztapi
 from zope.testing.functional import BrowserTestCase
 from zope.app.content.zpt import ZPTPage
 from zope.app.content.folder import Folder
 from transaction import get_transaction
-from zope.component.resource import provideResource
-from zope.publisher.interfaces.browser import IBrowserPresentation
 from zope.app.publisher.browser.resource import Resource
 from zope.app.traversing import traverse
 from zope.security.checker import defineChecker, NoProxy
@@ -128,7 +127,7 @@
                     'https://otherhost/bar/pt\n')
 
     def test_resources(self):
-        provideResource('quux', IBrowserPresentation, Resource)
+        ztapi.browserResource('quux', Resource)
         self.addPage('/foo/bar/pt',
                      u'<span tal:replace="context/++resource++quux" />')
         self.verify('/foo/bar/pt', 'http://localhost/@@/quux\n')




More information about the Zope3-Checkins mailing list