Commit c5c572a2 authored by Julien Muchembled's avatar Julien Muchembled

More compatibility code for ZODB 3.4

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2803 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b55075f7
...@@ -84,3 +84,8 @@ if needs_patch: ...@@ -84,3 +84,8 @@ if needs_patch:
else: # old ZODB (e.g. ZODB 3.4) else: # old ZODB (e.g. ZODB 3.4)
Connection._setDB = lambda self, odb, *args, **kw: \ Connection._setDB = lambda self, odb, *args, **kw: \
Connection_setDB(self, _DB(odb, self), *args, **kw) Connection_setDB(self, _DB(odb, self), *args, **kw)
from ZODB.DB import DB
DB_invalidate = DB.invalidate
DB.invalidate = lambda self, tid, oids, *args, **kw: \
DB_invalidate(self, tid, dict.fromkeys(oids, None), *args, **kw)
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