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
01ca1d4c
Commit
01ca1d4c
authored
May 01, 2006
by
Chris Withers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove zLOG use.
parent
77e086c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/OFS/subscribers.py
lib/python/OFS/subscribers.py
+3
-3
No files found.
lib/python/OFS/subscribers.py
View file @
01ca1d4c
...
@@ -18,9 +18,8 @@ $Id$
...
@@ -18,9 +18,8 @@ $Id$
"""
"""
import
warnings
import
warnings
import
sys
from
logging
import
getLogger
from
zLOG
import
LOG
,
ERROR
from
Acquisition
import
aq_base
from
Acquisition
import
aq_base
from
App.config
import
getConfiguration
from
App.config
import
getConfiguration
from
AccessControl
import
getSecurityManager
from
AccessControl
import
getSecurityManager
...
@@ -35,6 +34,7 @@ from zope.app.location.interfaces import ISublocations
...
@@ -35,6 +34,7 @@ from zope.app.location.interfaces import ISublocations
deprecatedManageAddDeleteClasses
=
[]
deprecatedManageAddDeleteClasses
=
[]
LOG
=
getLogger
(
'OFS.subscribers'
)
def
compatibilityCall
(
method_name
,
*
args
):
def
compatibilityCall
(
method_name
,
*
args
):
"""Call a method if events have not been setup yet.
"""Call a method if events have not been setup yet.
...
@@ -152,7 +152,7 @@ def callManageBeforeDelete(ob, item, container):
...
@@ -152,7 +152,7 @@ def callManageBeforeDelete(ob, item, container):
except
ConflictError
:
except
ConflictError
:
raise
raise
except
:
except
:
LOG
(
'Zope'
,
ERROR
,
'_delObject() threw'
,
error
=
sys
.
exc_info
()
)
LOG
.
error
(
'_delObject() threw'
,
exc_info
=
True
)
# In debug mode when non-Manager, let exceptions propagate.
# In debug mode when non-Manager, let exceptions propagate.
if
getConfiguration
().
debug_mode
:
if
getConfiguration
().
debug_mode
:
if
not
getSecurityManager
().
getUser
().
has_role
(
'Manager'
):
if
not
getSecurityManager
().
getUser
().
has_role
(
'Manager'
):
...
...
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