[Zope] standard_error_message
Steve Alexander
steve@cat-box.net
Tue, 02 May 2000 15:33:38 +0100
Steve Alexander wrote:
>
>
> Checked it out like this:
>
> / (Zope root)
>
> - standard_error_message ( contains just <dtml-var std_error_message>
> )
> - std_error_message ( copy of original standard_error_message )
> - test ( folder )
> - std_error_message ( contains
> <html><body><h1>Test error message</h1>
> </body></html> )
> - index_html ( contains <dtml-var does_not_exist> )
>
> I try the url "http://server/blarg", and I get the normal error message
> I try the url "http://server/test/blarg", and I get the normal error
> message
> I try the url "http://server/test/index_html", and I get the test error
> message
> I try the url "http://server/test", and I get the test error message
>
> So... limited success :-)
New experiment:
/ (Zope root)
- standard_error_message -- contains just
<dtml-var
"_.render(REQUEST.resolve_url(URL+'/std_error_message'))">
- std_error_message ( copy of original standard_error_message )
- test ( folder )
- std_error_message ( contains
<html><body><h1>Test error message</h1>
</body></html> )
- index_html ( contains <dtml-var does_not_exist> )
I try the url "http://server/blarg", and I get the normal error message
I try the url "http://server/test/blarg", and I get the test error
message
I try the url "http://server/test/index_html", and I get the test error
message
I try the url "http://server/test", and I get the test error message
also...
I try the url "http://server/test/blarg/foo", and I get the test error
message
Better!
There is just one strangeness. I've changed the text of
/std_error_message, but for errors not caught by a std_error_message in
a subdirectory, I get some sort of hard-coded error message -- Zope
doesn't seem to be calling my root /standard_error_message at all in
this case.
--
Steve Alexander
Software Engineer
Cat-Box limited