[Zope-Checkins] CVS: Packages/TAL - DummyEngine.py:1.37.4.1
Stefan H. Holek
stefan at epy.co.at
Thu Jan 27 09:55:59 EST 2005
Update of /cvs-repository/Packages/TAL
In directory cvs.zope.org:/tmp/cvs-serv10838/lib/python/TAL
Modified Files:
Tag: Zope-2_7-branch
DummyEngine.py
Log Message:
Got rid of import order dependencies in PageTemplates, TAL, and ZTUtils.
=== Packages/TAL/DummyEngine.py 1.37 => 1.37.4.1 ===
--- Packages/TAL/DummyEngine.py:1.37 Mon Apr 7 13:38:27 2003
+++ Packages/TAL/DummyEngine.py Thu Jan 27 09:55:28 2005
@@ -23,12 +23,11 @@
from DocumentTemplate.DT_Util import ustr
IDomain = None
-if sys.modules.has_key('Zope'):
- try:
- from Zope.I18n.ITranslationService import ITranslationService
- from Zope.I18n.IDomain import IDomain
- except ImportError:
- pass
+try:
+ from Zope.I18n.ITranslationService import ITranslationService
+ from Zope.I18n.IDomain import IDomain
+except ImportError:
+ pass
if IDomain is None:
# Before 2.7, or not in Zope
class ITranslationService: pass
More information about the Zope-Checkins
mailing list