[Checkins] SVN: CMF/trunk/CMFCore/testing.py - removed obsolete BBB code

Yvo Schubbe y.2007- at wcm-solutions.de
Sun Feb 4 09:45:19 EST 2007


Log message for revision 72360:
  - removed obsolete BBB code

Changed:
  U   CMF/trunk/CMFCore/testing.py

-=-
Modified: CMF/trunk/CMFCore/testing.py
===================================================================
--- CMF/trunk/CMFCore/testing.py	2007-02-04 13:40:37 UTC (rev 72359)
+++ CMF/trunk/CMFCore/testing.py	2007-02-04 14:45:18 UTC (rev 72360)
@@ -15,13 +15,10 @@
 $Id$
 """
 
-from Acquisition import aq_acquire
 from OFS.SimpleItem import SimpleItem
-from Products.Five import i18n
 from Products.Five import zcml
 from zope.component import adapts
 from zope.i18n.interfaces import IUserPreferredLanguages
-from zope.i18n.testmessagecatalog import TestMessageFallbackDomain
 from zope.interface import implements
 from zope.publisher.interfaces.http import IHTTPRequest
 from zope.testing import testrunner
@@ -108,18 +105,6 @@
         return ('test',)
 
 
-# BBB: for Five < 1.5.2
-class _FallbackTranslationService(object):
-
-    def translate(self, domain, msgid, mapping, context, target_language,
-                  default):
-        util = TestMessageFallbackDomain(domain)
-        if context is not None:
-            context = aq_acquire(context, 'REQUEST', None)
-        return util.translate(msgid, mapping, context, target_language,
-                              default)
-
-
 class EventZCMLLayer:
 
     @classmethod
@@ -155,17 +140,10 @@
     def setUp(cls):
         import Products
 
-        # BBB: for Five < 1.5.2
-        cls._fallback_translation_service = i18n._fallback_translation_service
-        i18n._fallback_translation_service = _FallbackTranslationService()
-
         zcml.load_config('testing.zcml', Products.CMFCore)
 
     @classmethod
     def tearDown(cls):
-        # BBB: for Five < 1.5.2
-        i18n._fallback_translation_service = cls._fallback_translation_service
-
         cleanUp()
 
 



More information about the Checkins mailing list