standard_err_message ques... repost
Hi, I posted this about 4 days back but did not get a resolution or any ideas as to what I might be doing wrong. I was trying out the suggestions regarding custom error handling mentioned @ http://www.zope.org/Members/JohnC/StandardErrorMessage and put a simple <dtml-if "error_type=='NotFound'"> <dtml-call "RESPONSE.redirect(errors.e404.absolute_url())"> </dtml-if> at the top of my standard_error_message. Unfortunately when I try to hit a non-existant page I do not get redirected to the error page, I still get the Debugging Notice.... blah blah blah If I put a <dtml-var error_type> at the top I do get the NotFound at the top of the error page. Why is this not being handled.?? TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
AM wrote:
and put a simple
<dtml-if "error_type=='NotFound'"> <dtml-call "RESPONSE.redirect(errors.e404.absolute_url())"> </dtml-if> at the top of my standard_error_message.
Unfortunately when I try to hit a non-existant page I do not get redirected to the error page, I still get the Debugging Notice.... blah blah blah
Did you read all of the How-To? Especially the bit about "How do I redirect broken links?" Try: <dtml-call "RESPONSE.redirect(errors.e404.absolute_url(),lock=1)"> cheers, Chris
for some reason lock=1 worked only after a restart. but it works now. I might have missed that part about 2.2+ . Thanks AM Chris Withers wrote:
AM wrote:
and put a simple
<dtml-if "error_type=='NotFound'"> <dtml-call "RESPONSE.redirect(errors.e404.absolute_url())"> </dtml-if> at the top of my standard_error_message.
Unfortunately when I try to hit a non-existant page I do not get redirected to the error page, I still get the Debugging Notice.... blah blah blah
Did you read all of the How-To? Especially the bit about "How do I redirect broken links?"
Try: <dtml-call "RESPONSE.redirect(errors.e404.absolute_url(),lock=1)">
cheers,
Chris
.
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
participants (2)
-
AM -
Chris Withers