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
c616e43e
Commit
c616e43e
authored
Apr 07, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I hate source lines longer than 79 charcaters almost as much
as I hate line-continuation characters.
parent
3f5f47e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+6
-4
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
c616e43e
...
...
@@ -84,8 +84,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.4
4 2001/04/07 16:01:2
9 jim Exp $'''
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
$Id: HTTPResponse.py,v 1.4
5 2001/04/07 16:07:0
9 jim Exp $'''
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
,
re
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
...
@@ -524,7 +524,8 @@ class HTTPResponse(BaseResponse):
<UL>
<LI>The URL may be incorrect.</LI>
<LI>The parameters passed to this resource may be incorrect.</LI>
<LI>A resource that this resource relies on may be encountering an error.</LI>
<LI>A resource that this resource relies on may be
encountering an error.</LI>
</UL>
<P>For more detailed information about the error, please
...
...
@@ -665,7 +666,8 @@ class HTTPResponse(BaseResponse):
self
.
_traceback
(
t
,
v
,
tb
)),
is_error
=
1
)
elif
lower
(
strip
(
b
)[:
6
])
==
'<html>'
or
lower
(
strip
(
b
)[:
14
])
==
'<!doctype html'
:
elif
(
lower
(
strip
(
b
)[:
6
])
==
'<html>'
or
lower
(
strip
(
b
)[:
14
])
==
'<!doctype html'
):
# error is an HTML document, not just a snippet of html
tb
=
self
.
setBody
(
b
+
self
.
_traceback
(
t
,
'(see above)'
,
tb
),
is_error
=
1
)
...
...
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