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
59c87943
Commit
59c87943
authored
Apr 29, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed bobo-exception header code to use tb tail, rather than head
for reporting errors.
parent
48aa18b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/python/ZPublisher/Response.py
lib/python/ZPublisher/Response.py
+8
-2
No files found.
lib/python/ZPublisher/Response.py
View file @
59c87943
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
__doc__
=
'''CGI Response Output formatter
__doc__
=
'''CGI Response Output formatter
$Id: Response.py,v 1.1
5 1997/04/18 19:46:19
jim Exp $'''
$Id: Response.py,v 1.1
6 1997/04/29 18:29:00
jim Exp $'''
# Copyright
# Copyright
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
@@ -55,6 +55,10 @@ $Id: Response.py,v 1.15 1997/04/18 19:46:19 jim Exp $'''
...
@@ -55,6 +55,10 @@ $Id: Response.py,v 1.15 1997/04/18 19:46:19 jim Exp $'''
# (540) 371-6909
# (540) 371-6909
#
#
# $Log: Response.py,v $
# $Log: Response.py,v $
# Revision 1.16 1997/04/29 18:29:00 jim
# Changed bobo-exception header code to use tb tail, rather than head
# for reporting errors.
#
# Revision 1.15 1997/04/18 19:46:19 jim
# Revision 1.15 1997/04/18 19:46:19 jim
# Brian's changes to try and get file name and line no in exceptions.
# Brian's changes to try and get file name and line no in exceptions.
#
#
...
@@ -122,7 +126,7 @@ $Id: Response.py,v 1.15 1997/04/18 19:46:19 jim Exp $'''
...
@@ -122,7 +126,7 @@ $Id: Response.py,v 1.15 1997/04/18 19:46:19 jim Exp $'''
#
#
#
#
#
#
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
,
regsub
import
string
,
types
,
sys
,
regex
,
regsub
...
@@ -485,6 +489,8 @@ class Response:
...
@@ -485,6 +489,8 @@ class Response:
# Try to capture exception info for bci calls
# Try to capture exception info for bci calls
et
=
regsub
.
gsub
(
'
\
n
'
,
'
\
t
\
n
'
,
str
(
t
))
et
=
regsub
.
gsub
(
'
\
n
'
,
'
\
t
\
n
'
,
str
(
t
))
ev
=
regsub
.
gsub
(
'
\
n
'
,
'
\
t
\
n
'
,
str
(
v
))
ev
=
regsub
.
gsub
(
'
\
n
'
,
'
\
t
\
n
'
,
str
(
v
))
# Get the tb tail, which is the interesting part:
while
tb
.
tb_next
is
not
None
:
tb
=
tb
.
tb_next
el
=
str
(
tb
.
tb_lineno
)
el
=
str
(
tb
.
tb_lineno
)
ef
=
str
(
tb
.
tb_frame
.
f_code
.
co_filename
)
ef
=
str
(
tb
.
tb_frame
.
f_code
.
co_filename
)
if
string
.
find
(
ev
,
'<html>'
)
>=
0
:
ev
=
'bobo exception'
if
string
.
find
(
ev
,
'<html>'
)
>=
0
:
ev
=
'bobo exception'
...
...
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