provide specialized error views; activate via including configure-errorviews.zcml

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3482 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-08-01 13:36:33 +00:00
parent 0657457b17
commit 67ee39867b
4 changed files with 33 additions and 16 deletions

View file

@ -0,0 +1,21 @@
<!-- $Id$ -->
<configure
xmlns:zope="http://namespaces.zope.org/zope"
xmlns="http://namespaces.zope.org/browser">
<page for="zope.interface.common.interfaces.IException"
name="index.html"
template="systemerror.pt"
class="zope.app.exception.systemerror.SystemErrorView"
permission="zope.Public"
layer="cybertools.browser.loops.Loops" />
<page for="zope.publisher.interfaces.INotFound"
name="index.html"
permission="zope.Public"
template="notfound.pt"
class="zope.app.exception.browser.notfound.NotFound"
layer="cybertools.browser.loops.Loops" />
</configure>

View file

@ -70,20 +70,4 @@
</zope:localUtility>
<!-- error views -->
<page for="zope.interface.common.interfaces.IException"
name="index.html"
template="systemerror.pt"
class="zope.app.exception.systemerror.SystemErrorView"
permission="zope.Public"
layer="cybertools.browser.loops.Loops" />
<page for="zope.publisher.interfaces.INotFound"
name="index.html"
permission="zope.Public"
template="notfound.pt"
class="zope.app.exception.browser.notfound.NotFound"
layer="cybertools.browser.loops.Loops" />
</configure>

View file

@ -0,0 +1,6 @@
<html i18n:domain="zope">
<body>
<h3 i18n:translate="">
The page that you are trying to access is not available</h3>
</body>
</html>

View file

@ -0,0 +1,6 @@
<html i18n:domain="zope">
<body>
<h3 i18n:translate="">
A system error occurred</h3>
</body>
</html>