aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-09-21 12:09:44 +0200
committercedricbonhomme <devnull@localhost>2011-09-21 12:09:44 +0200
commit44c08ea6b02bdfc3212cc10672e58f27d3e2bec8 (patch)
treee7c13d0df0acdfb38388416a4f376e97b06298e9
parentAdded error_page_404() function. (diff)
downloadnewspipe-44c08ea6b02bdfc3212cc10672e58f27d3e2bec8.tar.gz
newspipe-44c08ea6b02bdfc3212cc10672e58f27d3e2bec8.tar.bz2
newspipe-44c08ea6b02bdfc3212cc10672e58f27d3e2bec8.zip
Minor improvement of the display of the error 404 page.
-rwxr-xr-xpyAggr3g470r.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 164db974..0185ae61 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -44,9 +44,13 @@ import PyQRNative
def error_page_404(status, message, traceback, version):
"""
- Display an error if the page does not exists
+ Display an error if the page does not exist.
"""
- return "Error %s - This page does not exist." % status
+ html = htmlheader()
+ html += htmlnav
+ html += "<br /><br />Error %s - This page does not exist." % status
+ html += "\n<hr />\n" + htmlfooter
+ return html
bindhost = "0.0.0.0"
cherrypy.config.update({ 'server.socket_port': 12556, 'server.socket_host': bindhost})
bgstack15