[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/exception/browser/configure.zcml
Register the not found view for
zope.exceptions.INotFoundError instead of
Marius Gedminas
marius at pov.lt
Thu Jul 8 16:36:23 EDT 2004
Log message for revision 26233:
Register the not found view for zope.exceptions.INotFoundError instead of
zope.publisher.interfaces.NotFound which is too specific. Now trying
to display http://localhost:8080/@@index.html/extrajunk will show a 404 page
instead of a cryptic SystemError message.
Jim said on IRC that views should be registered for exception classes, and that
exception interfaces should go away. I think that should be done as a separate
refactoring, and that's why this change uses INotFoundError instead of
NotFoundError directly.
-=-
Modified: Zope3/trunk/src/zope/app/exception/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/exception/browser/configure.zcml 2004-07-08 20:21:53 UTC (rev 26232)
+++ Zope3/trunk/src/zope/app/exception/browser/configure.zcml 2004-07-08 20:36:23 UTC (rev 26233)
@@ -26,7 +26,7 @@
/>
<page
- for="zope.publisher.interfaces.NotFound"
+ for="zope.exceptions.INotFoundError"
name="index.html"
permission="zope.Public"
template="notfound.pt"
More information about the Zope3-Checkins
mailing list