Re: [Zope] Can't override standard_error_message on NotFound?

2000-06-27 Thread R. David Murray

On Mon, 26 Jun 2000, matt wrote:
 I'm having some problems with standard_error_message on 2.2.0b2.  According to the 
mailing list archives I should be able to override NotFound errors (I even 
cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own 
standard_error_message in case I was missing something) but requesting a nonexistent 
object still gets me what appears to be a built-in page.

Usually this means your standard_error_message is throwing an exception,
in which case Zope use the one hardcoded in the source.

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Can't override standard_error_message on NotFound?

2000-06-27 Thread Chris Withers

"R. David Murray" wrote:
 On Mon, 26 Jun 2000, matt wrote:
  I'm having some problems with standard_error_message on 2.2.0b2.  According to the 
mailing list archives I should be able to override NotFound errors (I even 
cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own 
standard_error_message in case I was missing something) but requesting a nonexistent 
object still gets me what appears to be a built-in page.

standard_error_message is also notoriously buggy in the way it handles
things unless you're using Zope 2.2. I have lost significant hair in
this area ;-)

 Usually this means your standard_error_message is throwing an exception,
 in which case Zope use the one hardcoded in the source.

The way to check this is to look at the error. If your error message is
throwing an exception, the origin of the error will be your error page.
If it's still showing the original Not Found error then you're suffering
from bugginess.

HTH,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Can't override standard_error_message on NotFound?

2000-06-26 Thread matt

I'm having some problems with standard_error_message on 2.2.0b2.  According to the 
mailing list archives I should be able to override NotFound errors (I even 
cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own 
standard_error_message in case I was missing something) but requesting a nonexistent 
object still gets me what appears to be a built-in page.

Is there something else to do?



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )