[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript/tests - testSQLScript.py:1.3

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


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

Modified Files:
	testSQLScript.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/OFS/Content/SQLScript/tests/testSQLScript.py 1.2 => 1.3 ===
 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
@@ -66,15 +66,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 _getScript(self):
         return SQLScript("my_connection",