[Checkins] SVN: zc.twist/trunk/src/zc/twist/ Remove version argument since it's not supported in newer ZODB releases.

Zvezdan Petkovic zvezdan at zope.com
Tue Jun 2 17:24:46 EDT 2009


Log message for revision 100604:
  Remove version argument since it's not supported in newer ZODB releases.
  
  Also remove the comment about the issue fixed in the previous checkin
  r100535.
  
  

Changed:
  U   zc.twist/trunk/src/zc/twist/README.txt
  U   zc.twist/trunk/src/zc/twist/__init__.py

-=-
Modified: zc.twist/trunk/src/zc/twist/README.txt
===================================================================
--- zc.twist/trunk/src/zc/twist/README.txt	2009-06-02 19:44:19 UTC (rev 100603)
+++ zc.twist/trunk/src/zc/twist/README.txt	2009-06-02 21:24:46 UTC (rev 100604)
@@ -270,8 +270,7 @@
     2
 
 Without a running reactor, this functionality will not work
-[#teardown_monkeypatch]_.  Also, it relies on an undocumented, protected
-attribute on the ZODB.DB, so is fragile across ZODB versions.
+[#teardown_monkeypatch]_.
 
 You can also specify a reactor for the partial using ``setReactor``, if
 you don't want to use the standard one installed by twisted in

Modified: zc.twist/trunk/src/zc/twist/__init__.py
===================================================================
--- zc.twist/trunk/src/zc/twist/__init__.py	2009-06-02 19:44:19 UTC (rev 100603)
+++ zc.twist/trunk/src/zc/twist/__init__.py	2009-06-02 21:24:46 UTC (rev 100604)
@@ -78,12 +78,12 @@
         return DeferredReferenceToPersistent(obj)
     return obj
 
-def availableConnectionCount(db, version=''):
+def availableConnectionCount(db):
     try:                    # ZODB 3.9 and newer
         pool = db.pool
     except AttributeError:  # ZODB 3.8 and older
         pools = db._pools
-        pool = pools.get(version)
+        pool = pools.get('')    # version = ''
         if pool is None:
             return True
     size = db.getPoolSize()



More information about the Checkins mailing list