1 | <metal:html tal:define="showthirdcol nothing; |
---|
2 | error_type options/error_type|nothing; |
---|
3 | error_value options/error_value|nothing; |
---|
4 | error_message options/error_message|nothing; |
---|
5 | error_tb options/error_tb|nothing; |
---|
6 | error_traceback options/error_traceback|nothing; |
---|
7 | error_log_url options/error_log_url|nothing; |
---|
8 | p_props here/portal_properties; |
---|
9 | "> |
---|
10 | <metal:body use-macro="here/main_template/macros/master"> |
---|
11 | |
---|
12 | <metal:main fill-slot="main"> |
---|
13 | |
---|
14 | <tal:haserror condition="error_type"> |
---|
15 | <tal:NotFound condition="python:error_type == 'NotFound'"> |
---|
16 | <metal:block use-macro="here/error_lib_not_found/macros/not_found" /> |
---|
17 | </tal:NotFound> |
---|
18 | |
---|
19 | <tal:default condition="python:error_type != 'NotFound'"> |
---|
20 | <metal:block use-macro="here/error_lib_other/macros/other" /> |
---|
21 | </tal:default> |
---|
22 | |
---|
23 | <tal:debugging condition="python:1 or checkPerm('Manage portal', here)"> |
---|
24 | <table width="100%" cellpadding="2" cellspacing="2"> |
---|
25 | <tr> |
---|
26 | <th width="10%">Error Type:</th> |
---|
27 | <td tal:content="error_type"></td> |
---|
28 | </tr> |
---|
29 | <tr> |
---|
30 | <th>Error Value:</th> |
---|
31 | <td><pre tal:content="structure error_value" /></td> |
---|
32 | </tr> |
---|
33 | <tr> |
---|
34 | <th>Traceback:</th> |
---|
35 | <td><pre tal:content="structure error_traceback" /></td> |
---|
36 | </tr> |
---|
37 | </table> |
---|
38 | <hr /> |
---|
39 | <pre tal:content="structure request" /> |
---|
40 | <hr /> |
---|
41 | <a href="" tal:condition="python:error_log_url" |
---|
42 | tal:attributes="href error_log_url"> |
---|
43 | Show Error Log Entry |
---|
44 | </a> |
---|
45 | </tal:debugging> |
---|
46 | </tal:haserror> |
---|
47 | |
---|
48 | <tal:hasnoerror tal:condition="not:error_type"> |
---|
49 | In Heaven, everything's fine but not here ... |
---|
50 | </tal:hasnoerror> |
---|
51 | |
---|
52 | </metal:main> |
---|
53 | </metal:body> |
---|
54 | </metal:html> |
---|