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) ...@@ -11,6 +11,10 @@ Trunk (unreleased)
Restructuring 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 - Use the standard libraries doctest module in favor of the deprecated version
in zope.testing. in zope.testing.
......
...@@ -12,12 +12,9 @@ ...@@ -12,12 +12,9 @@
# #
############################################################################## ##############################################################################
""" """
Five subscriber definitions. Subscriber definitions.
$Id$
""" """
import warnings
from logging import getLogger from logging import getLogger
import OFS.interfaces import OFS.interfaces
...@@ -67,10 +64,9 @@ def maybeWarnDeprecated(ob, method_name): ...@@ -67,10 +64,9 @@ def maybeWarnDeprecated(ob, method_name):
# Method knows it's deprecated # Method knows it's deprecated
return return
class_ = ob.__class__ class_ = ob.__class__
warnings.warn( LOG.debug(
"%s.%s.%s is discouraged. You should use event subscribers instead." % "%s.%s.%s is discouraged. You should use event subscribers instead." %
(class_.__module__, class_.__name__, method_name), (class_.__module__, class_.__name__, method_name))
DeprecationWarning)
################################################## ##################################################
......
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