[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB/tests - testSQLCommand.py:1.4

Jim Fulton jim@zope.com
Thu, 1 Aug 2002 14:42:47 -0400


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

Modified Files:
	testSQLCommand.py 
Log Message:
Removed dependcies of:

  Zope.ComponentArchitecture
  Zope.Configuration
  Zope.Exceptions
  Zope.Testing

on other packages, especially App, in preparation for making these
packages part of Zope 2 and useful outside of the Zope application.

In particular, all placeful service support was moved to
Zope.App.ComponentArchitecture.  

Placeful service implementors should get the nextService and
nextServiceManager functions from
Zope.App.ComponentArchitecture.NextService. 




=== Zope3/lib/python/Zope/App/RDB/tests/testSQLCommand.py 1.3 => 1.4 ===
 from Zope.App.RDB.IConnectionService import IConnectionService
 from Zope.App.RDB.IZopeConnection import IZopeConnection
 from Zope.App.RDB.IZopeCursor import IZopeCursor
-import Zope.ComponentArchitecture
+from Zope.App.ComponentArchitecture import NextService
 from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture.GlobalServiceManager import \
      serviceManager as sm
@@ -67,14 +67,11 @@
         PlacelessSetup.setUp(self)
         sm.defineService('Connections', IConnectionService)
         sm.provideService('Connections', ConnectionServiceStub())
-        self._old_getNextServiceManager = \
-                              Zope.ComponentArchitecture.getNextServiceManager
-        Zope.ComponentArchitecture.getNextServiceManager = \
-                              getNextServiceManager
+        self._old_getNextServiceManager = NextService.getNextServiceManager
+        NextService.getNextServiceManager = getNextServiceManager
 
     def tearDown(self):
-        Zope.ComponentArchitecture.getNextServiceManager = \
-                              self._old_getNextServiceManager
+        NextService.getNextServiceManager = self._old_getNextServiceManager
 
 
     def testSimpleSQLCommand(self):