Log message for revision 111033: Backport c110337 from trunk - no more manage_* warnings
Changed: U Zope/branches/2.12/doc/CHANGES.rst U Zope/branches/2.12/src/OFS/subscribers.py -=- Modified: Zope/branches/2.12/doc/CHANGES.rst =================================================================== --- Zope/branches/2.12/doc/CHANGES.rst 2010-04-18 23:34:27 UTC (rev 111032) +++ Zope/branches/2.12/doc/CHANGES.rst 2010-04-18 23:39:59 UTC (rev 111033) @@ -11,9 +11,6 @@ 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 @@ - 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. Modified: Zope/branches/2.12/src/OFS/subscribers.py =================================================================== --- Zope/branches/2.12/src/OFS/subscribers.py 2010-04-18 23:34:27 UTC (rev 111032) +++ Zope/branches/2.12/src/OFS/subscribers.py 2010-04-18 23:39:59 UTC (rev 111033) @@ -12,12 +12,9 @@ # ############################################################################## """ -Five subscriber definitions. - -$Id$ +Subscriber definitions. """ -import warnings from logging import getLogger import OFS.interfaces @@ -67,10 +64,9 @@ # 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)) ################################################## _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins