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:
parent
0657457b17
commit
67ee39867b
4 changed files with 33 additions and 16 deletions
21
browser/loops/configure-errorviews.zcml
Normal file
21
browser/loops/configure-errorviews.zcml
Normal 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>
|
|
@ -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>
|
||||
|
|
6
browser/loops/notfound.pt
Normal file
6
browser/loops/notfound.pt
Normal 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>
|
6
browser/loops/systemerror.pt
Normal file
6
browser/loops/systemerror.pt
Normal file
|
@ -0,0 +1,6 @@
|
|||
<html i18n:domain="zope">
|
||||
<body>
|
||||
<h3 i18n:translate="">
|
||||
A system error occurred</h3>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue