[Zodb-checkins] SVN: ZODB/branches/3.4/ __call__() got broken about a year ago.

Tim Peters tim.one at comcast.net
Fri May 6 14:17:11 EDT 2005


Log message for revision 30291:
  __call__() got broken about a year ago.
  
  There are no tests for this.
  

Changed:
  U   ZODB/branches/3.4/NEWS.txt
  U   ZODB/branches/3.4/src/ZODB/ZApplication.py

-=-
Modified: ZODB/branches/3.4/NEWS.txt
===================================================================
--- ZODB/branches/3.4/NEWS.txt	2005-05-06 17:31:11 UTC (rev 30290)
+++ ZODB/branches/3.4/NEWS.txt	2005-05-06 18:17:11 UTC (rev 30291)
@@ -14,7 +14,13 @@
   transaction object.  As a result, the ``afterCompletion()`` methods of
   registered synchronizers weren't called when the first transaction ended.
 
+ZApplication
+------------
 
+- The ``__call__`` method didn't work if a non-None ``connection`` string
+  argument was passed.  Thanks to Stefan Holek for noticing.
+
+
 What's new in ZODB3 3.4a6?
 ==========================
 Release date: 05-May-2005

Modified: ZODB/branches/3.4/src/ZODB/ZApplication.py
===================================================================
--- ZODB/branches/3.4/src/ZODB/ZApplication.py	2005-05-06 17:31:11 UTC (rev 30290)
+++ ZODB/branches/3.4/src/ZODB/ZApplication.py	2005-05-06 18:17:11 UTC (rev 30291)
@@ -74,7 +74,7 @@
 
         if connection is None:
             connection=db.open()
-        elif isinstance(type, basestring):
+        elif isinstance(connection, basestring):
             connection=db.open(connection)
 
         return connection.root()[aname]



More information about the Zodb-checkins mailing list