Commit 020fd5c6 authored by Hanno Schlichting's avatar Hanno Schlichting

Downgrade the ``manage_* is discouraged. You should use event subscribers...

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.
parent 16796274
......@@ -11,6 +11,10 @@ Trunk (unreleased)
Restructuring
+++++++++++++
- 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.
......
......@@ -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