[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception -
configure.zcml:1.5 unauthorized.pt:1.4 unauthorized.py:1.6
user.pt:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Aug 12 16:15:29 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/exception
In directory cvs.zope.org:/tmp/cvs-serv15705/app/browser/exception
Modified Files:
configure.zcml unauthorized.pt unauthorized.py user.pt
Log Message:
Internationalized Exception Views
=== Zope3/src/zope/app/browser/exception/configure.zcml 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/exception/configure.zcml:1.4 Thu Aug 7 17:34:23 2003
+++ Zope3/src/zope/app/browser/exception/configure.zcml Tue Aug 12 15:14:53 2003
@@ -1,30 +1,24 @@
-<configure
- xmlns="http://namespaces.zope.org/browser"
- i18n_domain='zope'
- >
+<configure xmlns="http://namespaces.zope.org/browser">
-<page
- for="zope.exceptions.IUnauthorized"
- name="index.html"
- permission="zope.Public"
- template="unauthorized.pt"
- class=".unauthorized.Unauthorized"
- />
+ <page
+ for="zope.exceptions.IUnauthorized"
+ name="index.html"
+ permission="zope.Public"
+ template="unauthorized.pt"
+ class=".unauthorized.Unauthorized" />
-<page
- for="zope.app.interfaces.exceptions.IUserError"
- name="index.html"
- permission="zope.Public"
- template="user.pt"
- class=".user.UserErrorView"
- />
+ <page
+ for="zope.app.interfaces.exceptions.IUserError"
+ name="index.html"
+ permission="zope.Public"
+ template="user.pt"
+ class=".user.UserErrorView" />
-<page
- for="zope.app.interfaces.form.IWidgetInputError"
- name="snippet"
- permission="zope.Public"
- class=".form.WidgetInputErrorView"
- attribute="snippet"
- />
+ <page
+ for="zope.app.interfaces.form.IWidgetInputError"
+ name="snippet"
+ permission="zope.Public"
+ class=".form.WidgetInputErrorView"
+ attribute="snippet" />
</configure>
=== Zope3/src/zope/app/browser/exception/unauthorized.pt 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/exception/unauthorized.pt:1.3 Mon Mar 24 04:03:37 2003
+++ Zope3/src/zope/app/browser/exception/unauthorized.pt Tue Aug 12 15:14:53 2003
@@ -5,7 +5,7 @@
<div metal:fill-slot="body">
-<h1>Unauthorized</h1>
+<h1 i18n:translate="">Unauthorized</h1>
<p tal:content="context"/>
</div>
=== Zope3/src/zope/app/browser/exception/unauthorized.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/exception/unauthorized.py:1.5 Fri Jul 18 10:00:22 2003
+++ Zope3/src/zope/app/browser/exception/unauthorized.py Tue Aug 12 15:14:53 2003
@@ -11,19 +11,17 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
+"""Unautorized Exception View Class
$Id$
"""
-__metaclass__ = type
from zope.app.traversing import getParent
from zope.app.interfaces.security import IAuthenticationService
-class Unauthorized:
+__metaclass__ = type
+
- def __init__(self, context, request):
- self.context = context
- self.request = request
+class Unauthorized:
def issueChallenge(self):
# Set the error status to 403 (Forbidden) in the case when we don't
=== Zope3/src/zope/app/browser/exception/user.pt 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/exception/user.pt:1.3 Thu May 8 15:26:38 2003
+++ Zope3/src/zope/app/browser/exception/user.pt Tue Aug 12 15:14:53 2003
@@ -1,11 +1,10 @@
<html metal:use-macro="context/@@standard_macros/dialog">
<body>
-
<div metal:fill-slot="body">
-<ul>
-<li tal:repeat="part context" tal:content="part">Error message</li>
-</ul>
+ <ul>
+ <li tal:repeat="part context" tal:content="part">Error message</li>
+ </ul>
</div>
</body>
More information about the Zope3-Checkins
mailing list