[Grok-dev] Re: How do I mimick the standard_error_page of Zope 2.x?
Philipp von Weitershausen
philipp at weitershausen.de
Tue Sep 18 17:50:49 EDT 2007
Leonardo Rochael Almeida wrote:
> Perhaps something like this would work (untested)?
> class NotFound(grok.View):
> # or grok.context(zope.interface.common.interfaces.IException)
> At least the equivalent registrations above are the way to implement
> error views in Zope, according to the exception hook in the ZPublisher
> for 2.11. Didn't check how it is implemented in pure Zope3
This way is correct. It was actually borrowed from Zope 3 where it
> Perhaps Grok could grow a grok.ErrorView base class that would already
> set the grok.name("index.html")
Or we define the default view name for exceptions to be 'index'?
http://worldcookery.com -- Professional Zope documentation and training
More information about the Grok-dev