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/. ...@@ -11,9 +11,6 @@ http://docs.zope.org/zope2/releases/.
Features Added Features Added
++++++++++++++ ++++++++++++++
- Use the standard libraries doctest module in favor of the deprecated version
in zope.testing.
- Updated packages: - Updated packages:
- distribute = 0.6.10 - distribute = 0.6.10
...@@ -44,6 +41,13 @@ Features Added ...@@ -44,6 +41,13 @@ Features Added
- zope.securitypolicy = 3.6.1 - zope.securitypolicy = 3.6.1
- zope.viewlet = 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 - LP #143013: make the maximum number of retries on ConflictError a
configuration option. configuration option.
......
...@@ -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