[Zope3-checkins] CVS: Zope3/src/zope/app/i18n/tests -
placelesssetup.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Feb 27 17:25:54 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv19338/src/zope/app/i18n/tests
Modified Files:
placelesssetup.py
Log Message:
I must have been on sleep-derivation when originally writing the Translator
code, which was horribly broken.
Fixed everything and updated the engine to do the right thing too.
=== Zope3/src/zope/app/i18n/tests/placelesssetup.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/i18n/tests/placelesssetup.py:1.3 Fri Nov 21 12:12:06 2003
+++ Zope3/src/zope/app/i18n/tests/placelesssetup.py Fri Feb 27 17:25:24 2004
@@ -13,10 +13,8 @@
##############################################################################
"""Unit test logic for setting up and tearing down basic infrastructure
-
$Id$
"""
-
from zope.app.services.servicenames import Translation
from zope.app.tests import ztapi
from zope.component import getServiceManager
@@ -25,18 +23,15 @@
from zope.i18n.interfaces import IUserPreferredCharsets
from zope.i18n.interfaces import IUserPreferredLanguages
from zope.publisher.browser import BrowserLanguages
-from zope.publisher.http import HTTPCharsets
-from zope.publisher.http import IHTTPRequest
+from zope.publisher.http import HTTPCharsets, IHTTPRequest
class PlacelessSetup:
def setUp(self):
sm = getServiceManager(None)
- defineService = sm.defineService
- provideService = sm.provideService
- defineService(Translation, ITranslationService)
- provideService(Translation, translationService)
+ sm.defineService(Translation, ITranslationService)
+ sm.provideService(Translation, translationService)
ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
HTTPCharsets)
More information about the Zope3-Checkins
mailing list