[Zope-dev] Error 404: Not Found
Dmitry B. Khlonin
Dmitry B. Khlonin" <khl@paloma.spbu.ru
Thu, 23 Mar 2000 23:34:00 +0300
><dtml-raise type="Redirect">/</dtml-raise>
Not worked.
How to fire down exception with type 'NotFound'
I've try following...
<dtml-try>
<dtml-except NotFound>
<dtml-raise type="Redirect">/</dtml-raise>
</dtml-try>
Not worked.
If I remove <dtml-try>...</dtml-try> block
then parsing error occured.
P.S. I have obvious idea - this case not solving in terms of Zope
programming.
May I astray?
-----Original Message-----
From: Evan Simpson <evan@digicool.com>
To: Dmitry B. Khlonin <khl@paloma.spbu.ru>; R. David Murray
<bitz@bitdance.com>
Cc: Martijn Pieters <mj@digicool.com>; zope-dev@zope.org <zope-dev@zope.org>
Date: 23 марта 2000 г. 0:47
Subject: Re: [Zope-dev] Error 404: Not Found
>----- Original Message -----
>From: Dmitry B. Khlonin <khl@paloma.spbu.ru>
>> <dtml-call> not worked too.
>> it only not render '/'
>> but no execute redirect
>> >> <dtml-var "RESPONSE.redirect('/')">.
>
>I suggest the following (untested) replacement:
>
><dtml-raise type="Redirect">/</dtml-raise>
>
>Cheers,
>
>Evan @ digicool & 4-am
>
>