[ZOPE] newbie q: standard_error_message

Sungmook Kim dotorimook@yahoo.com
Mon, 10 Feb 2003 22:38:42 +0100 (CET)


oh, my bad. there was a typo. 
i meant <dtml-var my_header> and <dtml-var my_footer>
but the problem is that the content of the error
message is outside my header and footer.

it's exactly like this: 

<dtml-var my_header>
<td style="border-top-width:2px;
border-bottom-width:2px; border-top-color:#336633;
border-bottom-color:#336633; border-top-style:solid;
border-bottom-style:solid;" valign="top" width="580"
bgcolor="#FFFFFF">
<dtml-if error_message>
 <dtml-var error_message>
<dtml-else>

<TABLE BORDER="0" WIDTH="100%">
<TR VALIGN="TOP">

<TD WIDTH="10%" ALIGN="CENTER">
<IMG SRC="<dtml-var BASE1>/p_/ZButton" ALT="Zope">
</TD>

<TD WIDTH="90%">
  <H2>Zope Error</H2>
  <P>Zope has encountered an error while publishing
this resource.
  </P>
  
  <P>
  <STRONG>Error Type: <dtml-var
error_type></STRONG><BR>
  <STRONG>Error Value: <dtml-var
error_value></STRONG><BR> 
  </P>
 
  <HR NOSHADE>
 
  <P>Troubleshooting Suggestions</P>

  <UL>
  <dtml-if "error_type in ('KeyError','NameError')">
  <LI>This resource may be trying to reference a
  nonexistent object or variable <STRONG><dtml-var
error_value></STRONG>.</LI>
  </dtml-if>
  <LI>The URL may be incorrect.</LI>
  <LI>The parameters passed to this resource may be
incorrect.</LI>
  <LI>A resource that this resource relies on may be
encountering an error.</LI>
  </UL>

  <P>For more detailed information about the error,
please
  refer to the HTML source for this page.
  </P>

  <P>If the error persists please contact the site
maintainer.
  Thank you for your patience.
  </P>
</TD></TR>
</TABLE>

<dtml-comment>
 Here, events like logging and other actions may also
be performed, such as
 sending mail automatically to the administrator.
</dtml-comment>

</dtml-if>
</td>
<dtml-var my_footer>




__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de