[Zope] Several standard_error_message and HTTPResponse.py questions

Lynn Walton waltonl@franklin.edu
Wed, 19 Sep 2001 14:25:24 -0500


Hi,

I've spent most of the day reading everything I can on the various
wiki's and mailing list archives.  I understand from:

http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/F1D3AA2B3825F14A

that the ZPublisher uses the hardcoded html in HTTPResponse.py to show
some error messages.

I hope that some documentation on this, as well as  getting this out
from being hardcoded there will be considered as pretty important
priorities.

That said, I'm experiencing something I wonder if anyone can explain.

On my site if I go to a non existent resource (url) I end up getting the
Site Error message nested inside itself.
I get
Site Error
An error was encountered while publishing this resource.
NotFound
......
And then nested in that :
  Site Error
  An error was encountered while publishing this resource.
  Resource not found
  .....

Yet when I try this on cmf.zope.org I only get it once.   When I try it
on dev.zope.org or www.zope.org  I get a customized Not Found page.
Can someone share whether the www.zope.org and dev.zope.org sites are
using the trick that Joachim described to do in HTTPResponse.py (I
guess):
 Quote " You can change the HTML code there if you want to have a
customized error. You might also put an HTML-based redirect into the
HTML header and redirect it to some non-protected Zope error page."

OR did they just go change the hardcoded html in HTTPResponse.py?

I'd like customize and would rather do it by redirecting. Has anyone
tried this?

Does anyone know why I get the nested thing?

Thanks,
Lynn