[Zope3-checkins] CVS: Zope3/src/zope/server/http/tests -
test_publisherserver.py:1.6
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:47 EST 2003
Update of /cvs-repository/Zope3/src/zope/server/http/tests
In directory cvs.zope.org:/tmp/cvs-serv617/src/zope/server/http/tests
Modified Files:
test_publisherserver.py
Log Message:
Changed to reflect the fact that the global adapter service is
no-longer available as a module global.
=== Zope3/src/zope/server/http/tests/test_publisherserver.py 1.5 => 1.6 ===
--- Zope3/src/zope/server/http/tests/test_publisherserver.py:1.5 Wed Apr 9 05:49:36 2003
+++ Zope3/src/zope/server/http/tests/test_publisherserver.py Fri Nov 21 12:12:45 2003
@@ -22,7 +22,7 @@
from zope.server.http.publisherhttpserver import PublisherHTTPServer
from zope.component.tests.placelesssetup import PlacelessSetup
-from zope.component.adapter import provideAdapter
+import zope.component
from zope.i18n.interfaces import IUserPreferredCharsets
@@ -92,7 +92,8 @@
def setUp(self):
PlacelessSetup.setUp(self)
- provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
+ as = zope.component.getService(None, 'Adapters')
+ as.provideAdapter(IHTTPRequest, IUserPreferredCharsets, [HTTPCharsets])
obj = tested_object()
obj.folder = tested_object()
obj.folder.item = tested_object()
More information about the Zope3-Checkins
mailing list