[Zope3-checkins] SVN: Zope3/trunk/src/zope/i18n/messageid.py get rid of deprecation warning during functional tests (and potentially

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Oct 20 08:16:31 EDT 2005


On Thursday 20 October 2005 08:24, Philipp von Weitershausen wrote:
> -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)
> +zope.deprecation.deprecated(
> +    ('MessageID', 'MessageIDFactory' 'Message', 'MessageFactory'),
> +    "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."
> +    )

Oh, I should have thought of that! :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-Checkins mailing list