[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB - TM.py:1.10.6.1
Matthew T. Kromer
matt@zope.com
Tue, 21 Jan 2003 09:40:51 -0500
Update of /cvs-repository/Zope/lib/python/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv12616
Modified Files:
Tag: Zope-2_6-branch
TM.py
Log Message:
Add a sortKey() method to TM to shut off warnings about database adapters not
providing a sortKey method.
=== Zope/lib/python/Shared/DC/ZRDB/TM.py 1.10 => 1.10.6.1 ===
--- Zope/lib/python/Shared/DC/ZRDB/TM.py:1.10 Wed Aug 14 17:50:59 2002
+++ Zope/lib/python/Shared/DC/ZRDB/TM.py Tue Jan 21 09:40:47 2003
@@ -62,6 +62,14 @@
tpc_abort = abort
+ def sortKey(self, *ignored):
+ """ The sortKey method is used for recent ZODB compatibility which
+ needs to have a known commit order for lock acquisition. Most
+ DA's talking to RDBMS systems do not care about commit order, so
+ return the constant 1
+ """
+ return 1
+
class Surrogate:
def __init__(self, db):