python-hserver/hserver/systemplates.py

32 lines
603 B
Python

import hserver
tmpl_exception = """
<html>
<head>
<title>HServer Exception</title>
<style>
body,p,div {
font-family: "DejaVu Sans","Helvetica", "Arial", "Sans";
}
</style>
</head>
<body>
<h1>HServer Exception</h1>
<p>There was an exception raised, while handling your request!</p>
<p>Eine Ausnahme trat auf, w&auml;hrend die Anfrage bearbeitet wurde!</p>
<div>
<%
tracelist = traceback.extract_tb( self.__traceback__ )
%>
<%iterate trace tracelist%>
<div>
<b><%=trace[0]%>:<%=trace[1]%></b> in <i><%=trace[2]%></i><br/>
<%=trace[3]%><br/><br/>
</div>
<%end%>
</div>
</body>
</html>"""