[Neo-report] r2507 vincent - in /trunk: README neo/client/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 10 05:36:48 CET 2010


Author: vincent
Date: Fri Dec 10 05:36:48 2010
New Revision: 2507

Log:
Drop backward compatibility with older ZODB.

Update README to set minimum ZODB version instead of minimum Zope version.

Modified:
    trunk/README
    trunk/neo/client/app.py

Modified: trunk/README
==============================================================================
--- trunk/README [iso-8859-1] (original)
+++ trunk/README [iso-8859-1] Fri Dec 10 05:36:48 2010
@@ -11,7 +11,7 @@ Requirements
 
     - MySQLdb http://sourceforge.net/projects/mysql-python
 
-    - Zope 2.8 or later
+    - ZODB 3.10 or later (required python 2.5 or later, only for client nodes)
 
 Overview
 

Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Fri Dec 10 05:36:48 2010
@@ -64,13 +64,6 @@ else:
     compress = real_compress
     makeChecksum = real_makeChecksum
 
-# Set environment variable to non-empty value to ignore:
-# - multiple calls to tpc_begin for same transaction
-# - tpc_finish called for different transaction
-# This is needed to conform to the "old" ZODB API (ex: 3.4).
-RELAX_TRANSACTION_CHECKS = bool(os.getenv('NEO_RELAX_TRANSACTION_CHECKS',
-    False))
-
 class ThreadContext(object):
 
     def __init__(self):
@@ -606,8 +599,6 @@ class Application(object):
         # First get a transaction, only one is allowed at a time
         if self.local_var.txn is transaction:
             # We already begin the same transaction
-            if RELAX_TRANSACTION_CHECKS:
-                return
             raise StorageTransactionError('Duplicate tpc_begin calls')
         if self.local_var.txn is not None:
             raise NeoException, 'local_var is not clean in tpc_begin'
@@ -865,8 +856,6 @@ class Application(object):
         """Finish current transaction."""
         local_var = self.local_var
         if local_var.txn is not transaction:
-            if RELAX_TRANSACTION_CHECKS:
-                return
             raise StorageTransactionError('tpc_finish called for wrong '
                 'transaction')
         if not local_var.txn_voted:




More information about the Neo-report mailing list