[Zope3-checkins] SVN: Zope3/trunk/src/zope/i18n/messageid.py
Deprecate this module as a former import location of MessageID (and
Philipp von Weitershausen
philikon at philikon.de
Tue Oct 11 14:36:20 EDT 2005
Log message for revision 39061:
Deprecate this module as a former import location of MessageID (and
apparently, Message).
Changed:
U Zope3/trunk/src/zope/i18n/messageid.py
-=-
Modified: Zope3/trunk/src/zope/i18n/messageid.py
===================================================================
--- Zope3/trunk/src/zope/i18n/messageid.py 2005-10-11 18:36:08 UTC (rev 39060)
+++ Zope3/trunk/src/zope/i18n/messageid.py 2005-10-11 18:36:20 UTC (rev 39061)
@@ -11,6 +11,20 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"$Id$"
+"""Provide a backwards compatible import location for i18n message
+ids. This module will be removed from Zope 3.3.
+
+$Id$
+"""
+import warnings
+import zope.deprecation
+zope.deprecation.__show__.off()
from zope.i18nmessageid import MessageID, MessageIDFactory
from zope.i18nmessageid import Message, MessageFactory
+zope.deprecation.__show__.on()
+
+warnings.warn("The zope.i18n.messageid module as a backwards-compatible import "
+ "location for i18n message ids has been deprecated and will be "
+ "removed from Zope 3.3. Please use Message and MessageFactory "
+ "from the zope.i18nmessageid package instead.",
+ DeprecationWarning, 2)
More information about the Zope3-Checkins
mailing list