Commit 72685306 authored by Kirill Smelkov's avatar Kirill Smelkov

Move dbopen(), dbclose() to wendelin.lib.zodb

Factor out those routines to open a ZODB database to common place.

The reason for doing so is that we'll soon teach dbopen to automatically
recognize several protocols, e.g. neo:// and zeo:// and this way,
clients who use dbopen() could automatically access storages besides
FileStorage.
parent ab5bb80b
......@@ -16,8 +16,8 @@
#
# See COPYING file for full licensing terms.
from wendelin.bigarray.array_zodb import ZBigArray
from wendelin.bigfile.tests.common_zodb import dbopen, dbclose
from wendelin.bigfile.tests.test_filezodb import kkey, cacheInfo
from wendelin.lib.zodb import dbopen, dbclose
from persistent import UPTODATE
import transaction
from numpy import dtype, uint8, all, array_equal
......
......@@ -4,7 +4,7 @@
from wendelin.bigfile.file_zodb import ZBigFile
from wendelin.lib.mem import memset
from wendelin.lib.testing import Adler32, nulladler32_bysize, ffadler32_bysize
from wendelin.bigfile.tests.common_zodb import dbopen, dbclose
from wendelin.lib.zodb import dbopen, dbclose
import transaction
from tempfile import mkdtemp
from shutil import rmtree
......
......@@ -16,8 +16,8 @@
#
# See COPYING file for full licensing terms.
from wendelin.bigfile.file_zodb import LivePersistent, ZBigFile
from wendelin.bigfile.tests.common_zodb import dbopen as z_dbopen, dbclose
from wendelin.bigfile import ram_reclaim
from wendelin.lib.zodb import dbopen as z_dbopen, dbclose
from persistent import UPTODATE, GHOST
import transaction
from tempfile import mkdtemp
......
# Wendelin.bigfile | common bits for ZODB-related tests
# Wendelin.bigfile | common ZODB-related helpers
# Copyright (C) 2014-2015 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
......
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