[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - configure.zcml:1.6

Jim Fulton jim@zope.com
Mon, 3 Feb 2003 13:08:53 -0500


Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv7871/src/zope/app/traversing

Modified Files:
	configure.zcml 
Log Message:
Changed the adapter directive to require a for attribute.
Use * to register for all objects.


=== Zope3/src/zope/app/traversing/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/traversing/configure.zcml:1.5	Tue Jan  7 07:27:55 2003
+++ Zope3/src/zope/app/traversing/configure.zcml	Mon Feb  3 13:08:49 2003
@@ -3,17 +3,17 @@
    xmlns:browser='http://namespaces.zope.org/browser'
 >
 
-<adapter factory="zope.app.traversing.adapters.Traverser"
+<adapter for="*"
+         factory="zope.app.traversing.adapters.Traverser"
          provides="zope.app.interfaces.traversing.ITraverser"
          />
-    <!-- Ultimately, this should be registered only for IWrapper, but that
-         won't work like that just now.
-         for="zope.proxy.interfaces.context.IWrapper" /> -->
 
-<adapter factory="zope.app.traversing.adapters.DefaultTraversable"
+<adapter for="*"
+         factory="zope.app.traversing.adapters.DefaultTraversable"
          provides="zope.app.interfaces.traversing.ITraversable" />
 
 <adapter
+    for="*"
     factory="zope.app.traversing.adapters.ObjectName"
     provides="zope.app.interfaces.traversing.IObjectName"
     permission='zope.Public'
@@ -27,6 +27,7 @@
     />
 
 <adapter 
+    for="*"
     provides="zope.app.interfaces.traversing.IPhysicallyLocatable"
     factory="zope.app.traversing.adapters.WrapperPhysicallyLocatable" 
     />