[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testConvenienceFunctions.py:1.6.6.1

Jim Fulton jim@zope.com
Sat, 30 Nov 2002 07:45:02 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv30047/lib/python/Zope/App/Traversing/tests

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	testConvenienceFunctions.py 
Log Message:
Refactored the way TTW component registration is done.  There are now
separate registry objects that abstract the machinery for registering
multiple conflicting configurations and deciding which, if any are
active.  Also provided a new field and widget for the status
information.

Along the way, cleaned up and streamlined placeful testing
infrastructure a bit.

Now checking into branch. Will give file-by-file (or at least more
specific logs) when the changes are merged into the head.


=== Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py 1.6 => 1.6.6.1 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py:1.6	Mon Aug  5 12:27:03 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py	Sat Nov 30 07:44:31 2002
@@ -21,16 +21,8 @@
 from Zope.Proxy.ContextWrapper import ContextWrapper
 from Zope.App.Traversing.Traverser import Traverser
 from Zope.ComponentArchitecture import getService
-
-from Zope.App.Traversing.ITraverser import ITraverser
-from Zope.App.Traversing.ITraversable import ITraversable
-from Zope.App.Traversing.DefaultTraversable import DefaultTraversable
 from Zope.App.Traversing.ObjectName import IObjectName, ObjectName
-
-from Zope.App.Traversing.IPhysicallyLocatable import IPhysicallyLocatable
 from Zope.App.Traversing.IContainmentRoot import IContainmentRoot
-from Zope.App.Traversing.PhysicalLocationAdapters \
-     import WrapperPhysicallyLocatable, RootPhysicallyLocatable
 
 
 from Zope.Exceptions import NotFoundError
@@ -59,15 +51,7 @@
 
         self.tr = Traverser(root)
         getService(None, "Adapters").provideAdapter(
-              None, ITraverser, Traverser)
-        getService(None, "Adapters").provideAdapter(
-              None, ITraversable, DefaultTraversable)
-        getService(None, "Adapters").provideAdapter(
               None, IObjectName, ObjectName)
-        getService(None, "Adapters").provideAdapter(
-              None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
-        getService(None, "Adapters").provideAdapter(
-              IContainmentRoot, IPhysicallyLocatable, RootPhysicallyLocatable)
 
 
     def testTraverse(self):