[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript - ISQLScript.py:1.14 SQLScript.py:1.11
Albertas Agejevas
alga@codeworks.lt
Wed, 4 Dec 2002 12:57:47 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/SQLScript
In directory cvs.zope.org:/tmp/cvs-serv25799/lib/python/Zope/App/OFS/Content/SQLScript
Modified Files:
ISQLScript.py SQLScript.py
Log Message:
Renamed 'Connections' service to 'SQLDatabaseConnections'
=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/ISQLScript.py 1.13 => 1.14 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/ISQLScript.py:1.13 Mon Nov 11 16:10:35 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/ISQLScript.py Wed Dec 4 12:57:16 2002
@@ -25,7 +25,7 @@
def __allowed(self):
"""Note that this method works only if the Field is context wrapped."""
- connection_service = getService(self.context, "Connections")
+ connection_service = getService(self.context, "SQLDatabaseConnections")
connections = connection_service.getAvailableConnections()
return connections
=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/SQLScript.py 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/SQLScript.py:1.10 Mon Dec 2 15:03:48 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/SQLScript.py Wed Dec 4 12:57:16 2002
@@ -107,7 +107,7 @@
def getConnection(self):
'See Zope.App.RDB.ISQLCommand.ISQLCommand'
- connection_service = getService(self, "Connections")
+ connection_service = getService(self, "SQLDatabaseConnections")
connection = connection_service.getConnection(self.connectionName)
return connection