RE: [Zope] Custom 404 - Resource not found

2006-04-20 Thread Andy Yates
> > ...
> >Changing standard_error_message does not seem change this error page.
> 
> Maybe, you made a mistake?

Yes, I made a mistake!  In standard_error_message:


 


  My TEST  Site Error
...

404 errors hit the dtml-if and other errors, like attribute errors, go
to the dtml-else.   I was just modifying the else.

Thanks!
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Custom 404 - Resource not found

2006-04-19 Thread Dieter Maurer
Andy Yates wrote at 2006-4-18 14:53 -0500:
>Is there a way to customize the Zope 404 error page? 

404 ("NotFound") responses go through the normal error handling.
Thus, they are handled by "standard_error_message" -- however
maybe one higher than you expect:

  Error handling starts as soon as the first URL segment cannot
  be located. Starting from this point, "raise_standardErrorMessage"
  is looked for upwards when then looks for "standard_error_message"
  via acquisition.

> ...
>Changing standard_error_message does not seem change this error page.

Maybe, you made a mistake?
If your "standard_error_message" causes an exception a
default error handling is used.

> I
>need to do this inside Zope or via the apache front end which talks to
>Zope through mod_rewrite/proxy and Virtual Host Monster.

You can do it inside Zope.

But, you may also be able to do it in Apache.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Custom 404 - Resource not found

2006-04-18 Thread Andy Yates
Is there a way to customize the Zope 404 error page? 

Site Error
An error was encountered while publishing this resource.
Resource not found

Changing standard_error_message does not seem change this error page.  I
need to do this inside Zope or via the apache front end which talks to
Zope through mod_rewrite/proxy and Virtual Host Monster.


Thanks!
Andy
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )