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
3eddc6c8
Commit
3eddc6c8
authored
Jun 02, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Responses no longer are responsible for aborting transactions.
parent
f3ef3caa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+2
-7
lib/python/ZPublisher/xmlrpc.py
lib/python/ZPublisher/xmlrpc.py
+0
-4
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
3eddc6c8
...
...
@@ -84,8 +84,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.2
8 2000/05/26 15:31:47 shane
Exp $'''
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
$Id: HTTPResponse.py,v 1.2
9 2000/06/02 20:07:05 jim
Exp $'''
__version__
=
'$Revision: 1.2
9
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
...
@@ -577,11 +577,6 @@ class HTTPResponse(BaseResponse):
stb
=
tb
# Abort running transaction, if any
if
abort
:
try
:
get_transaction
().
abort
()
except
:
pass
try
:
# Try to capture exception info for bci calls
et
=
translate
(
str
(
t
),
nl2sp
)
...
...
lib/python/ZPublisher/xmlrpc.py
View file @
3eddc6c8
...
...
@@ -192,10 +192,6 @@ class Response:
if
type
(
info
)
is
type
(())
and
len
(
info
)
==
3
:
t
,
v
,
tb
=
info
else
:
t
,
v
,
tb
=
sys
.
exc_info
()
# Abort running transaction, if any:
try
:
get_transaction
().
abort
()
except
:
pass
# Create an appropriate Fault object. Unfortunately, we throw away
# most of the debugging information. More useful error reporting is
# left as an exercise for the reader.
...
...
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