source: WAeUP_SRP/trunk/skins/cps_custom/standard_error_message.pt @ 17959

Last change on this file since 17959 was 2217, checked in by Henrik Bettermann, 17 years ago

move content from waeup_custom to cps_custom

File size: 2.0 KB
Line 
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<tal:Anauthorized condition="python:error_type == 'Unauthorized'">
11    <metal:block use-macro="here/error_not_found/macros/not_found" />
12</tal:Anauthorized>
13
14<tal:Anauthorized condition="python:error_type != 'Unauthorized'">
15<metal:body use-macro="here/main_template/macros/master">
16
17<metal:main fill-slot="main">
18
19   
20<tal:haserror condition="error_type">
21  <tal:NotFound condition="python:error_type == 'NotFound'">
22    <metal:block use-macro="here/error_not_found/macros/not_found" />
23  </tal:NotFound>
24
25  <tal:default condition="python:error_type != 'NotFound'">
26    <metal:block use-macro="here/error_other/macros/other" />
27  </tal:default>
28
29  <tal:debugging condition="python:checkPerm('Manage portal', here)">
30    <table width="100%" cellpadding="2" cellspacing="2">
31      <tr>
32        <th width="10%">Error Type:</th>
33        <td tal:content="error_type"></td>
34      </tr>
35      <tr>
36        <th>Error Value:</th>
37        <td><pre tal:content="structure error_value" /></td>
38      </tr>
39      <tr>
40        <th>Traceback:</th>
41        <td><pre tal:content="structure error_traceback" /></td>
42      </tr>
43    </table>
44    <hr />
45    <pre tal:content="structure request" />
46    <hr />
47    <a href="" tal:condition="python:error_log_url"
48               tal:attributes="href error_log_url">
49      Show Error Log Entry
50    </a>
51  </tal:debugging>
52</tal:haserror>
53
54<tal:hasnoerror tal:condition="not:error_type">
55Sorry, an error occurred.
56</tal:hasnoerror>
57
58</metal:main>
59</metal:body>
60</tal:Anauthorized>
61</metal:html>
Note: See TracBrowser for help on using the repository browser.