Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
5e95c1db
Commit
5e95c1db
authored
Apr 18, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport c110337 from trunk - no more manage_* warnings
parent
c5162ffc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
doc/CHANGES.rst
doc/CHANGES.rst
+7
-3
src/OFS/subscribers.py
src/OFS/subscribers.py
+3
-7
No files found.
doc/CHANGES.rst
View file @
5e95c1db
...
...
@@ -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.
...
...
src/OFS/subscribers.py
View file @
5e95c1db
...
...
@@ -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
))
##################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment