[Zope3-checkins] CVS: Zope3/src/zope/schema - errornames.py:1.4
Stephan Richter
srichter@cosmos.phy.tufts.edu
Tue, 15 Jul 2003 15:34:50 -0400
Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv14517/src/zope/schema
Modified Files:
errornames.py
Log Message:
Be careful, nothing from zope.app can be imported by zope.schema. The new
way is the long way, but at least not zope.app.i18n dependent.
=== Zope3/src/zope/schema/errornames.py 1.3 => 1.4 ===
--- Zope3/src/zope/schema/errornames.py:1.3 Mon Jul 14 11:28:35 2003
+++ Zope3/src/zope/schema/errornames.py Tue Jul 15 15:34:43 2003
@@ -20,7 +20,8 @@
as the strings are only defined in one place. Otherwise, this module
serves no real function.
"""
-from zope.app.i18n import ZopeMessageIDFactory as _
+from zope.i18n import MessageIDFactory
+_ = MessageIDFactory('zope')
WrongType = _(u'Wrong type')