[Zope3-checkins] CVS: Zope3/src/zope/app/i18n/tests -
placelesssetup.py:1.3
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:37 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/i18n/tests
Modified Files:
placelesssetup.py
Log Message:
Changed to use the new ztapi module, which provides handy functions
for setting up adapters and views for tests. This is needed because
there are no-longer global adapter and view services sitting around as
module globals.
=== Zope3/src/zope/app/i18n/tests/placelesssetup.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/i18n/tests/placelesssetup.py:1.2 Tue Mar 25 18:26:11 2003
+++ Zope3/src/zope/app/i18n/tests/placelesssetup.py Fri Nov 21 12:12:06 2003
@@ -18,7 +18,7 @@
"""
from zope.app.services.servicenames import Translation
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
from zope.component import getServiceManager
from zope.i18n.globaltranslationservice import translationService
from zope.i18n.interfaces import ITranslationService
@@ -38,5 +38,7 @@
defineService(Translation, ITranslationService)
provideService(Translation, translationService)
- provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
- provideAdapter(IHTTPRequest, IUserPreferredLanguages, BrowserLanguages)
+ ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
+ HTTPCharsets)
+ ztapi.provideAdapter(IHTTPRequest, IUserPreferredLanguages,
+ BrowserLanguages)
More information about the Zope3-Checkins
mailing list