Commit 25827862 authored by Barry Warsaw's avatar Barry Warsaw

__init__(): Pass config on through to the BerkeleyBase constructor.

parent f503daf9
...@@ -18,7 +18,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support ...@@ -18,7 +18,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning. undo or versioning.
""" """
__version__ = '$Revision: 1.43 $'.split()[-2:][0] __version__ = '$Revision: 1.44 $'.split()[-2:][0]
import sys import sys
import struct import struct
...@@ -75,14 +75,14 @@ class Full(BerkeleyBase, ConflictResolvingStorage): ...@@ -75,14 +75,14 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
# #
# Overrides of base class methods # Overrides of base class methods
# #
def __init__(self, name, env=None, prefix='zodb_'): def __init__(self, name, env=None, prefix='zodb_', config=None):
"""Initialize the Full database. """Initialize the Full database.
name, env, and prefix are passed straight through to the BerkeleyBase name, env, and prefix are passed straight through to the BerkeleyBase
base class constructor. base class constructor.
""" """
self._packlock = ThreadLock.allocate_lock() self._packlock = ThreadLock.allocate_lock()
BerkeleyBase.__init__(self, name, env, prefix) BerkeleyBase.__init__(self, name, env, prefix, config)
def _setupDBs(self): def _setupDBs(self):
# Data Type Assumptions: # Data Type Assumptions:
......
...@@ -18,7 +18,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support ...@@ -18,7 +18,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning. undo or versioning.
""" """
__version__ = '$Revision: 1.43 $'.split()[-2:][0] __version__ = '$Revision: 1.44 $'.split()[-2:][0]
import sys import sys
import struct import struct
...@@ -75,14 +75,14 @@ class Full(BerkeleyBase, ConflictResolvingStorage): ...@@ -75,14 +75,14 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
# #
# Overrides of base class methods # Overrides of base class methods
# #
def __init__(self, name, env=None, prefix='zodb_'): def __init__(self, name, env=None, prefix='zodb_', config=None):
"""Initialize the Full database. """Initialize the Full database.
name, env, and prefix are passed straight through to the BerkeleyBase name, env, and prefix are passed straight through to the BerkeleyBase
base class constructor. base class constructor.
""" """
self._packlock = ThreadLock.allocate_lock() self._packlock = ThreadLock.allocate_lock()
BerkeleyBase.__init__(self, name, env, prefix) BerkeleyBase.__init__(self, name, env, prefix, config)
def _setupDBs(self): def _setupDBs(self):
# Data Type Assumptions: # Data Type Assumptions:
......
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