[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Added additional configuration to account for multi-adapter fix.

Jim Fulton jim at zope.com
Sun Nov 6 16:38:24 EST 2005


Log message for revision 39949:
  Added additional configuration to account for multi-adapter fix.
  

Changed:
  U   Zope3/trunk/src/zope/app/debugskin/configure.zcml
  U   Zope3/trunk/src/zope/app/form/browser/configure.zcml

-=-
Modified: Zope3/trunk/src/zope/app/debugskin/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/debugskin/configure.zcml	2005-11-06 21:38:20 UTC (rev 39948)
+++ Zope3/trunk/src/zope/app/debugskin/configure.zcml	2005-11-06 21:38:23 UTC (rev 39949)
@@ -11,7 +11,8 @@
       permission="zope.Public"
       template="unauthorized.pt"
       class="zope.app.exception.browser.unauthorized.Unauthorized"
-      layer="debug" />
+      layer="debug" 
+      />
 
   <page 
       name="index.html"
@@ -19,6 +20,21 @@
       for="zope.interface.common.interfaces.IException"
       class=".exceptions.ExceptionDebugView"
       permission="zope.Public"
-      layer="debug" />
+      layer="debug" 
+      />
 
+  <!-- Need to repeat for NotFound to override default view -->
+  <!-- There is a functional test for NotFound. Did it really
+       mean to test the IException registration?
+        --> 
+  <page 
+      name="index.html"
+      template="error_debug.pt"
+      for="zope.publisher.interfaces.INotFound"
+      class=".exceptions.ExceptionDebugView"
+      permission="zope.Public"
+      layer="debug" 
+      />
+
+
 </configure>

Modified: Zope3/trunk/src/zope/app/form/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/configure.zcml	2005-11-06 21:38:20 UTC (rev 39948)
+++ Zope3/trunk/src/zope/app/form/browser/configure.zcml	2005-11-06 21:38:23 UTC (rev 39949)
@@ -268,6 +268,30 @@
       permission="zope.Public"
       />
 
+  <!-- 
+
+       Need to repeat the above for Sequence to avoid being overridden by a
+       DAV widget.  This suggests that we should be getting something
+       more specific than IInputWidget.
+
+       -->
+  <view
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      for="zope.schema.interfaces.ISequence"
+      provides="zope.app.form.interfaces.IDisplayWidget"
+      factory=".CollectionDisplayWidget"
+      permission="zope.Public"
+      />
+  <view
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      for="zope.schema.interfaces.ISequence"
+      provides="zope.app.form.interfaces.IInputWidget"
+      factory=".CollectionInputWidget"
+      permission="zope.Public"
+      />
+
+
+
   <!-- non-choice collection fields should register for the field + value type
        so as to allow specific field + value_type widgets such as the Choice
        pattern -->



More information about the Zope3-Checkins mailing list