[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/debug - configure.zcml:1.5 error_debug.pt:1.2 exceptions.py:1.4 unauthorized.pt:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 7 14:32:24 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/debug
In directory cvs.zope.org:/tmp/cvs-serv25213/debug

Modified Files:
	configure.zcml error_debug.pt exceptions.py unauthorized.pt 
Log Message:
In18n the skins.

Removed the 'www' directories and put the files directly in the skin. This
seems more consistent with what we are doing these days.


=== Zope3/src/zope/app/browser/skins/debug/configure.zcml 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/skins/debug/configure.zcml:1.4	Sun Aug  3 13:49:54 2003
+++ Zope3/src/zope/app/browser/skins/debug/configure.zcml	Thu Aug  7 13:31:18 2003
@@ -1,28 +1,22 @@
-<configure
-   xmlns='http://namespaces.zope.org/zope'
-   xmlns:browser='http://namespaces.zope.org/browser'
-   i18n_domain='zope'
-   >
+<configure xmlns="http://namespaces.zope.org/browser">
 
-  <browser:skin name="Debug" layers="debug rotterdam default" />
+  <skin name="Debug" layers="debug rotterdam default" />
 
-  <browser:page
+  <page
       for="zope.exceptions.IUnauthorized"
       name="index.html"
       permission="zope.Public"
       template="unauthorized.pt"
       class="zope.app.browser.exception.unauthorized.Unauthorized"
-      layer="debug"
-      />
+      layer="debug" />
 
-  <browser:page 
+  <page 
       name="index.html"
       template="error_debug.pt"
       for="zope.interface.common.interfaces.IException"
       class=".exceptions.ExceptionDebugView"
       permission="zope.Public"
-      layer="debug"
-      />
+      layer="debug" />
 
 </configure>
 


=== Zope3/src/zope/app/browser/skins/debug/error_debug.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/skins/debug/error_debug.pt:1.1	Tue Mar 11 18:12:30 2003
+++ Zope3/src/zope/app/browser/skins/debug/error_debug.pt	Thu Aug  7 13:31:18 2003
@@ -1,16 +1,21 @@
 <html metal:use-macro="context/@@standard_macros/dialog">
 <body>
-
 <div metal:fill-slot="body">
 
-<h3>Error type: <tal:span tal:replace="view/error_type" /></h3>
+  <h3 i18n:translate="">
+    Error type: 
+    <tal:span tal:replace="view/error_type" i18n:name="error_type"/>
+  </h3>
 
-<h5>Error object: <tal:span tal:replace="view/error_object" /></h5>
+  <h5 i18n:translate="">
+    Error object: 
+    <tal:span tal:replace="view/error_object" i18n:name="error_object"/>
+  </h5>
 
-<pre class="traceback">
-<tal:line tal:repeat="line view/traceback_lines"
-          tal:replace="line">TRACEBACK LINE</tal:line>
-</pre>
+  <pre class="traceback">
+    <tal:line tal:repeat="line view/traceback_lines"
+              tal:replace="line">TRACEBACK LINE</tal:line>
+  </pre>
 
 </div>
 </body>


=== Zope3/src/zope/app/browser/skins/debug/exceptions.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/skins/debug/exceptions.py:1.3	Wed Mar 12 09:24:25 2003
+++ Zope3/src/zope/app/browser/skins/debug/exceptions.py	Thu Aug  7 13:31:18 2003
@@ -15,17 +15,17 @@
 
 $Id$
 """
-__metaclass__ = type
-
 import sys
 import traceback
 
 from zope.interface.common.interfaces import IException
 
+__metaclass__ = type
+
+
 class ExceptionDebugView:
-    """ Render exceptions for debugging.
-    """
-    __used_for__ = (IException,)
+    """ Render exceptions for debugging."""
+    __used_for__ = IException
 
     def __init__(self, context, request):
 


=== Zope3/src/zope/app/browser/skins/debug/unauthorized.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/skins/debug/unauthorized.pt:1.1	Fri Mar 21 14:33:49 2003
+++ Zope3/src/zope/app/browser/skins/debug/unauthorized.pt	Thu Aug  7 13:31:18 2003
@@ -1,12 +1,11 @@
 <tal:Make_sure_we_process_the_authorization_chalenge_first
-  condition="view/issueChallenge"
-/><html metal:use-macro="context/@@standard_macros/dialog">
+    condition="view/issueChallenge"/><html 
+    metal:use-macro="context/@@standard_macros/dialog">
 <body>
-
 <div metal:fill-slot="body">
 
-<h1>Unauthorized</h1>
-<p>You're not allowed in here.</p>
+  <h1 i18n:translate="">Unauthorized</h1>
+  <p i18n:translate="">You're not allowed in here.</p>
 
 </div>
 </body>




More information about the Zope3-Checkins mailing list