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
8f3efd0a
Commit
8f3efd0a
authored
Nov 23, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port fix for collector #1957 from 2.8 branch.
parent
aa4b6104
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
23 deletions
+24
-23
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+24
-23
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
8f3efd0a
...
@@ -599,42 +599,43 @@ class HTTPResponse(BaseResponse):
...
@@ -599,42 +599,43 @@ class HTTPResponse(BaseResponse):
def
_error_html
(
self
,
title
,
body
):
def
_error_html
(
self
,
title
,
body
):
# XXX could this try to use standard_error_message somehow?
# XXX could this try to use standard_error_message somehow?
return
(
"""
\
return
(
"""
\
<
TABLE BORDER="0" WIDTH
="100%">
<
table border="0" width
="100%">
<
TR VALIGN="TOP
">
<
tr valign="top
">
<
TD WIDTH="10%" ALIGN="CENTER
">
<
td width="10%" align="center
">
</
TD
>
</
td
>
<
TD WIDTH
="90%">
<
td width
="90%">
<
H2>Site Error</H
2>
<
h2>Site Error</h
2>
<
P
>An error was encountered while publishing this resource.
<
p
>An error was encountered while publishing this resource.
</
P
>"""
+
\
</
p
>"""
+
\
"""
"""
<
P><STRONG>%s</STRONG></P
>
<
p><strong>%s</strong></p
>
%s"""
%
(
title
,
body
)
+
\
%s"""
%
(
title
,
body
)
+
\
"""
"""
<
HR NOSHADE
>
<
hr noshade="noshade"/
>
<
P>Troubleshooting Suggestions</P
>
<
p>Troubleshooting Suggestions</p
>
<
UL
>
<
ul
>
<
LI>The URL may be incorrect.</LI
>
<
li>The URL may be incorrect.</li
>
<
LI>The parameters passed to this resource 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
<
li
>A resource that this resource relies on may be
encountering an error.</
LI
>
encountering an error.</
li
>
</
UL
>
</
ul
>
<
P
>For more detailed information about the error, please
<
p
>For more detailed information about the error, please
refer to error log.
refer to error log.
</
P
>
</
p
>
<
P
>If the error persists please contact the site maintainer.
<
p
>If the error persists please contact the site maintainer.
Thank you for your patience.
Thank you for your patience.
</P>
</p>
</TD></TR>
</td></tr>
</TABLE>"""
)
</table>"""
)
def
notFoundError
(
self
,
entry
=
'Unknown'
):
def
notFoundError
(
self
,
entry
=
'Unknown'
):
self
.
setStatus
(
404
)
self
.
setStatus
(
404
)
...
...
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