[Neo-report] r1806 gregory - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 19 17:22:52 CET 2010
Author: gregory
Date: Fri Feb 19 17:22:52 2010
New Revision: 1806
Log:
Naive implementation of lastTransaction().
This API method seems used only in ZODB tests framework.
Modified:
trunk/neo/client/app.py
Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Fri Feb 19 17:22:52 2010
@@ -957,6 +957,11 @@
def iterator(self, start=None, stop=None):
return Iterator(self, start, stop)
+ def lastTransaction(self):
+ # XXX: this doesn't consider transactions created by other clients,
+ # should ask the primary master
+ return self.local_var.tid
+
def __del__(self):
"""Clear all connection."""
# Due to bug in ZODB, close is not always called when shutting
More information about the Neo-report
mailing list