[Neo-report] r2803 jm - /trunk/neo/client/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 24 16:26:10 CEST 2011
Author: jm
Date: Fri Jun 24 16:26:10 2011
New Revision: 2803
Log:
More compatibility code for ZODB 3.4
Modified:
trunk/neo/client/__init__.py
Modified: trunk/neo/client/__init__.py
==============================================================================
--- trunk/neo/client/__init__.py [iso-8859-1] (original)
+++ trunk/neo/client/__init__.py [iso-8859-1] Fri Jun 24 16:26:10 2011
@@ -84,3 +84,8 @@ if needs_patch:
else: # old ZODB (e.g. ZODB 3.4)
Connection._setDB = lambda self, odb, *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)
More information about the Neo-report
mailing list