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
8aabf8dd
Commit
8aabf8dd
authored
Nov 23, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1957: Made ZPublisher.HTTPResponse._error_html return conformant XHTML.
parent
850f2d12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
23 deletions
+27
-23
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+24
-23
No files found.
doc/CHANGES.txt
View file @
8aabf8dd
...
...
@@ -26,6 +26,9 @@ Zope Changes
Bugs Fixed
- Collector #1957: Made ZPublisher.HTTPResponse._error_html
return conformant XHTML.
- Collector #1891: Backported changes to ZCatalog regression
tests, removing use of 'whrandom' (and its 'seed' function).
...
...
lib/python/ZPublisher/HTTPResponse.py
View file @
8aabf8dd
...
...
@@ -599,42 +599,43 @@ class HTTPResponse(BaseResponse):
def
_error_html
(
self
,
title
,
body
):
# XXX could this try to use standard_error_message somehow?
return
(
"""
\
<
TABLE BORDER="0" WIDTH
="100%">
<
TR VALIGN="TOP
">
<
table border="0" width
="100%">
<
tr valign="top
">
<
TD WIDTH="10%" ALIGN="CENTER
">
<
td width="10%" align="center
">
</
TD
>
</
td
>
<
TD WIDTH
="90%">
<
H2>Site Error</H
2>
<
P
>An error was encountered while publishing this resource.
</
P
>"""
+
\
<
td width
="90%">
<
h2>Site Error</h
2>
<
p
>An error was encountered while publishing this resource.
</
p
>"""
+
\
"""
<
P><STRONG>%s</STRONG></P
>
<
p><strong>%s</strong></p
>
%s"""
%
(
title
,
body
)
+
\
"""
<
HR NOSHADE
>
<
hr noshade="noshade"/
>
<
P>Troubleshooting Suggestions</P
>
<
p>Troubleshooting Suggestions</p
>
<
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
>
</
UL
>
<
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
>
</
ul
>
<
P
>For more detailed information about the error, please
<
p
>For more detailed information about the error, please
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.
</P>
</TD></TR>
</TABLE>"""
)
</p>
</td></tr>
</table>"""
)
def
notFoundError
(
self
,
entry
=
'Unknown'
):
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