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
1404f1da
Commit
1404f1da
authored
Apr 22, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- moved special debug (== not handle_errors != debug mode) behavior up the stack
parent
8fa32d65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
src/OFS/SimpleItem.py
src/OFS/SimpleItem.py
+0
-8
src/ZPublisher/Publish.py
src/ZPublisher/Publish.py
+2
-1
No files found.
src/OFS/SimpleItem.py
View file @
1404f1da
...
@@ -235,14 +235,6 @@ class Item(Base,
...
@@ -235,14 +235,6 @@ class Item(Base,
if
not
REQUEST
:
if
not
REQUEST
:
REQUEST
=
aq_acquire
(
self
,
'REQUEST'
)
REQUEST
=
aq_acquire
(
self
,
'REQUEST'
)
handle_errors
=
getattr
(
getattr
(
REQUEST
,
'RESPONSE'
,
None
),
'handle_errors'
,
False
)
if
not
handle_errors
:
# If we have been asked not to handle errors don't even bother
# with transforming the exception into HTML. Just re-raise the
# original exception right away.
raise
error_type
,
error_value
,
tb
try
:
try
:
s
=
aq_acquire
(
client
,
'standard_error_message'
)
s
=
aq_acquire
(
client
,
'standard_error_message'
)
...
...
src/ZPublisher/Publish.py
View file @
1404f1da
...
@@ -153,7 +153,8 @@ def publish(request, module_name, after_list, debug=0,
...
@@ -153,7 +153,8 @@ def publish(request, module_name, after_list, debug=0,
getattr
(
cl
,
'__name__'
,
cl
),
val
,
getattr
(
cl
,
'__name__'
,
cl
),
val
,
debug_mode
and
compact_traceback
()[
-
1
]
or
''
))
debug_mode
and
compact_traceback
()[
-
1
]
or
''
))
if
err_hook
is
not
None
:
# debug is just used by tests (has nothing to do with debug_mode!)
if
not
debug
and
err_hook
is
not
None
:
retry
=
False
retry
=
False
if
parents
:
if
parents
:
parents
=
parents
[
0
]
parents
=
parents
[
0
]
...
...
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