Commit 026c1e9e authored by Julien Muchembled's avatar Julien Muchembled

Compatibility with ZODB 3.4.x

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2793 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7b4ed155
...@@ -51,9 +51,9 @@ class Storage(BaseStorage.BaseStorage, ...@@ -51,9 +51,9 @@ class Storage(BaseStorage.BaseStorage,
# - transaction isolation is not done # - transaction isolation is not done
# ZODB.interfaces.IStorageIteration, # ZODB.interfaces.IStorageIteration,
ZODB.interfaces.IStorageUndoable, ZODB.interfaces.IStorageUndoable,
ZODB.interfaces.IExternalGC, getattr(ZODB.interfaces, 'IExternalGC', None), # XXX ZODB < 3.9
getattr(ZODB.interfaces, 'ReadVerifyingStorage', None), # XXX ZODB 3.9 getattr(ZODB.interfaces, 'ReadVerifyingStorage', None), # XXX ZODB 3.9
ZODB.interfaces.IMVCCStorage, getattr(ZODB.interfaces, 'IMVCCStorage', None), # XXX ZODB < 3.9
))) )))
def __init__(self, master_nodes, name, read_only=False, def __init__(self, master_nodes, name, read_only=False,
......
...@@ -471,7 +471,7 @@ class NEOCluster(object): ...@@ -471,7 +471,7 @@ class NEOCluster(object):
def getTransaction(self): def getTransaction(self):
txn = transaction.TransactionManager() txn = transaction.TransactionManager()
return txn, self.db.open(txn) return txn, self.db.open(transaction_manager=txn)
class NEOThreadedTest(NeoUnitTestBase): class NEOThreadedTest(NeoUnitTestBase):
......
...@@ -12,7 +12,7 @@ if not os.path.exists('mock.py'): ...@@ -12,7 +12,7 @@ if not os.path.exists('mock.py'):
extras_require = { extras_require = {
'admin': [], 'admin': [],
'client': ['ZODB3 >= 3.9'], 'client': ['ZODB3'], # ZODB3 >= 3.10
'ctl': [], 'ctl': [],
'master': [], 'master': [],
'storage-btree': ['ZODB3'], 'storage-btree': ['ZODB3'],
......
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