Commit 0628569b authored by Jim Fulton's avatar Jim Fulton

No longer pass storage to Connection constructor.

parent 53078b61
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Database objects """Database objects
$Id: DB.py,v 1.7 1999/06/16 19:15:39 jim Exp $""" $Id: DB.py,v 1.8 1999/06/29 18:27:55 jim Exp $"""
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
import cPickle, cStringIO, sys, POSException import cPickle, cStringIO, sys, POSException
from Connection import Connection from Connection import Connection
...@@ -374,7 +374,6 @@ class DB: ...@@ -374,7 +374,6 @@ class DB:
# We won't bother with the pools. This will be # We won't bother with the pools. This will be
# a one-use connection. # a one-use connection.
c=Connection( c=Connection(
storage=self._storage,
version=version, version=version,
cache_size=self._version_cache_size, cache_size=self._version_cache_size,
cache_deactivate_after= cache_deactivate_after=
...@@ -400,7 +399,6 @@ class DB: ...@@ -400,7 +399,6 @@ class DB:
if version: if version:
if self._version_pool_size > len(allocated) or force: if self._version_pool_size > len(allocated) or force:
c=Connection( c=Connection(
storage=self._storage,
version=version, version=version,
cache_size=self._version_cache_size, cache_size=self._version_cache_size,
cache_deactivate_after= cache_deactivate_after=
...@@ -409,7 +407,6 @@ class DB: ...@@ -409,7 +407,6 @@ class DB:
pool.append(c) pool.append(c)
elif self._pool_size > len(allocated) or force: elif self._pool_size > len(allocated) or force:
c=Connection( c=Connection(
storage=self._storage,
version=version, version=version,
cache_size=self._cache_size, cache_size=self._cache_size,
cache_deactivate_after= cache_deactivate_after=
......
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