[prev in list] [next in list] [prev in thread] [next in thread]
List: zope3-checkins
Subject: [Zope3-checkins] CVS: Zope3/src/zope/server/http/tests -
From: Jim Fulton <cvs-admin () zope ! org>
Date: 2003-11-21 17:12:47
[Download RAW message or body]
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()
_______________________________________________
Zope3-Checkins mailing list
Zope3-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope3-checkins
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic