chiark / gitweb /
cgi.py (cookie): Exclude attribute keys whose value is false.
[chopwood] / exception.fhtml
1 ~1[<!-- -*-html-*-
2   --
3   -- Error report body
4   --
5   -- (c) 2013 Mark Wooding
6   -->
7
8 <!------- Licensing notice --------------------------------------------------
9   --
10   -- This file is part of Chopwood: a password-changing service.
11   --
12   -- Chopwood is free software; you can redistribute it and/or modify
13   -- it under the terms of the GNU Affero General Public License as
14   -- published by the Free Software Foundation; either version 3 of the
15   -- License, or (at your option) any later version.
16   --
17   -- Chopwood is distributed in the hope that it will be useful,
18   -- but WITHOUT ANY WARRANTY; without even the implied warranty of
19   -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20   -- GNU Affero General Public License for more details.
21   --
22   -- You should have received a copy of the GNU Affero General Public
23   -- License along with Chopwood; if not, see
24   -- <http://www.gnu.org/licenses/>.
25   -->~]~
26
27 ~={toplevel}:[~
28 <div class=exception>~%~;~
29 <h1>Chopwood: internal error</h1>
30 <p>(That means a bug.  Please report it.)~2%~]~
31
32 <h2>Exception</h2>
33 <pre>
34 ~={exception}{~H~^~%~}~
35 </pre>
36
37 <h2>Traceback</h2>
38 <ol>~={traceback}:{
39 <li><b>~H</b>:~D (<b>~H</b>)~@[~%  <br><tt>~H</tt>~]~}
40 </ol>
41
42 <h2>Parameters</h2>
43 <h3>Query</h3>
44 <table>~
45 ~={PARAM}:{~%<tr><th align=right valign=top>~H<td><tt>~H</tt>~}
46 </table>
47 <h3>Cookies</h3>
48 <table>~
49 ~={COOKIE}:{~%<tr><th align=right valign=top>~H<td><tt>~H</tt>~}
50 </table>
51 <h3>Path</h3>
52 <table>~
53 ~={PATH}{~%<tt>~H</tt>~}
54 </table>
55 <h3>Environment</h3>
56 <table>~
57 ~={ENV}:{~%<tr><th align=right valign=top>~H<td><tt>~H</tt>~}
58 </table>~
59
60 ~={toplevel}:[~2%</div>~%</body>~%</html>~;~]~
61
62 ~1[<!------- That's all, folks ------------------------------------------>~]~