Commit 60a74019 authored by Jeremy Hylton's avatar Jeremy Hylton

Change positional args to kwargs to simplify subclass implementation.

Add comment about use (or lack thereof) of classFactory in Zope.
parent 017cfa99
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Database objects """Database objects
$Id: DB.py,v 1.74 2004/04/14 20:45:37 jeremy Exp $""" $Id: DB.py,v 1.75 2004/04/15 16:41:42 jeremy Exp $"""
import cPickle, cStringIO, sys import cPickle, cStringIO, sys
from thread import allocate_lock from thread import allocate_lock
...@@ -532,7 +532,7 @@ class DB(object): ...@@ -532,7 +532,7 @@ class DB(object):
c = pool[-1] c = pool[-1]
del pool[-1] del pool[-1]
c._setDB(self, mvcc, txn_mgr, synch) c._setDB(self, mvcc=mvcc, txn_mgr=txn_mgr, synch=synch)
for pool, allocated in pooll: for pool, allocated in pooll:
for cc in pool: for cc in pool:
cc.cacheGC() cc.cacheGC()
...@@ -613,6 +613,7 @@ class DB(object): ...@@ -613,6 +613,7 @@ class DB(object):
c._cache.cache_size = v c._cache.cache_size = v
def classFactory(self, connection, modulename, globalname): def classFactory(self, connection, modulename, globalname):
# Zope will rebind this method to arbitrary user code at runtime.
return find_global(modulename, globalname) return find_global(modulename, globalname)
def setPoolSize(self, v): def setPoolSize(self, v):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment