Commit 5e95c1db authored by Hanno Schlichting's avatar Hanno Schlichting

Backport c110337 from trunk - no more manage_* warnings

parent c5162ffc
......@@ -11,9 +11,6 @@ http://docs.zope.org/zope2/releases/.
Features Added
++++++++++++++
- Use the standard libraries doctest module in favor of the deprecated version
in zope.testing.
- Updated packages:
- distribute = 0.6.10
......@@ -44,6 +41,13 @@ Features Added
- zope.securitypolicy = 3.6.1
- zope.viewlet = 3.6.1
- Downgrade the ``manage_* is discouraged. You should use event subscribers
instead`` warnings to debug level logging. This particular warning hasn't
motivated anyone to actually change any code.
- Use the standard libraries doctest module in favor of the deprecated version
in zope.testing.
- LP #143013: make the maximum number of retries on ConflictError a
configuration option.
......
......@@ -12,12 +12,9 @@
#
##############################################################################
"""
Five subscriber definitions.
$Id$
Subscriber definitions.
"""
import warnings
from logging import getLogger
import OFS.interfaces
......@@ -67,10 +64,9 @@ def maybeWarnDeprecated(ob, method_name):
# Method knows it's deprecated
return
class_ = ob.__class__
warnings.warn(
LOG.debug(
"%s.%s.%s is discouraged. You should use event subscribers instead." %
(class_.__module__, class_.__name__, method_name),
DeprecationWarning)
(class_.__module__, class_.__name__, method_name))
##################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment