[Zope-dev] Error 404: Not Found

Dmitry B. Khlonin Dmitry B. Khlonin" <khl@paloma.spbu.ru
Sat, 18 Mar 2000 02:34:54 +0300


This is a multi-part message in MIME format.

------=_NextPart_000_0037_01BF9082.8B2577E0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0038_01BF9082.8B2577E0"


------=_NextPart_001_0038_01BF9082.8B2577E0
Content-Type: text/plain;
	charset="windows-1251"
Content-Transfer-Encoding: quoted-printable

I have some trouble trying to extend hierarchical structure of my site.
If I have "virtual" directory structure, need to call method resolving
"Error 404". I've try it. But method "standard_error_message" render =
only,
and no way to catch exception. I don't need to see Zope Error Screen.
I want to give up this exception. What you recommend me?

<!--#if "error_type=3D=3D'NotFound'"-->
<!--#var "RESPONSE.redirect('/')"-->
<!--#/if-->


------=_NextPart_001_0038_01BF9082.8B2577E0
Content-Type: text/html;
	charset="windows-1251"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3D"text/html; charset=3Dwindows-1251" =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3612.1706"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#d8d0c8>
<DIV><FONT color=3D#000000 size=3D2>I have some trouble trying to extend =

hierarchical structure of my site.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>If I have &quot;virtual&quot; =
directory=20
structure, need to call method resolving</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&quot;Error 404&quot;. I've try it. =
But method=20
&quot;standard_error_message&quot; render only,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>and no way to catch </FONT><FONT =
color=3D#000000=20
size=3D2>exception. I don't need to see Zope Error Screen.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>I want to give up this exception. =
What you=20
recommend me?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&lt;!--#if=20
&quot;error_type=3D=3D'NotFound'&quot;--&gt;<BR>&lt;!--#var=20
&quot;RESPONSE.redirect('/')&quot;--&gt;<BR>&lt;!--#/if--&gt;<BR></FONT><=
/DIV></BODY></HTML>

------=_NextPart_001_0038_01BF9082.8B2577E0--

------=_NextPart_000_0037_01BF9082.8B2577E0
Content-Type: text/html;
	name="sds.htm"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="sds.htm"

PEhUTUw+PEhFQUQ+PE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVudD0idGV4dC9o
dG1sOyBjaGFyc2V0PXdpbmRvd3MtMTI1MSI+CjxUSVRMRT5ab3BlPC9USVRMRT4KPGxpbmsgUkVM
PSJTVFlMRVNIRUVUIiBIUkVGPSIvYm9keV9jc3MiIFRZUEU9InRleHQvY3NzIj4KPC9IRUFEPjxC
T0RZIEJHQ09MT1I9IiMxMDEwMTAiIFRFWFQ9IiNiMGIwYjAiPgo8IS0tCiAgCiAgCiAgCiAgCi8t
LT48dGFibGUgYm9yZGVyPSIwIiBjZWxsc3BhY2luZz0iMCIgY2VsbHBhZGRpbmc9IjUiPgo8dHI+
PHRkIGFsaWduPSJyaWdodCIgY2xhc3M9Im1lbnUiPjxzdHJvbmc+CjxBIEhSRUY9Ii8iPkhvbWU8
L0E+IHwKPEEgSFJFRj0iL1RyaWJ1bmUvIj5UcmlidW5lPC9BPiB8CjxBIEhSRUY9Ii9SZXNvdXJj
ZXMvIj5SZXNvdXJjZXM8L0E+IHwKPEEgSFJFRj0iL0hlcm9lcy8iPkhlcm9lczwvQT4gfAo8QSBI
UkVGPSJqYXZhc2NyaXB0Omhpc3RvcnkuYmFjaygpIj5CYWNrPC9BPgo8L3N0cm9uZz48L3RkPjwv
dHI+PC90YWJsZT4KLwogPEhUTUw+CjxIRUFEPjxUSVRMRT5ab3BlIEVycm9yPC9USVRMRT48L0hF
QUQ+CjxCT0RZPgoKPFRBQkxFIEJPUkRFUj0iM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