[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser - SQLScriptEdit.py:1.2

Jim Fulton jim@zope.com
Fri, 12 Jul 2002 09:33:41 -0400


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

Modified Files:
	SQLScriptEdit.py 
Log Message:
Fixed to call getService when getting connections.


=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/SQLScriptEdit.py 1.1 => 1.2 ===
 """
 $Id$
 """
-from Zope.ComponentArchitecture import getNextService
+from Zope.ComponentArchitecture import getService
 from Zope.App.Traversing import getParent
 
 from Zope.Publisher.Browser.BrowserView import BrowserView
@@ -37,6 +37,6 @@
 
     def getAllConnections(self):
         parent = getParent(self.context)
-        connection_service = getNextService(parent, "ConnectionService")
+        connection_service = getService(parent, "ConnectionService")
         connections = connection_service.getAvailableConnections()
         return connections