[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB - ZopeDatabaseAdapter.py:1.7

Albertas Agejevas alga@codeworks.lt
Tue, 5 Nov 2002 07:09:50 -0500


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

Modified Files:
	ZopeDatabaseAdapter.py 
Log Message:
Fixed forgotten self in a method signature, added a unit test.

=== Zope3/lib/python/Zope/App/RDB/ZopeDatabaseAdapter.py 1.6 => 1.7 ===
--- Zope3/lib/python/Zope/App/RDB/ZopeDatabaseAdapter.py:1.6	Mon Aug 12 11:07:30 2002
+++ Zope3/lib/python/Zope/App/RDB/ZopeDatabaseAdapter.py	Tue Nov  5 07:09:49 2002
@@ -83,12 +83,15 @@
     paramstyle = 'pyformat'
     threadsafety = 0
 
-    def getConverter(type):
+    def getConverter(self, type):
         'See Zope.App.RDB.IDBITypeInfo.IDBITypeInfo'
-        return lambda x: x
+        return identity
 
     #
     ############################################################
+
+def identity(x):
+    return x
 
 def parseDSN(dsn):
     """We could have the following cases: