Commit 7c191b8b authored by Jim Fulton's avatar Jim Fulton

Added commit and abort methods to transaction managers.

This makes direcr use of managers simpler.
parent 9776cfc7
......@@ -94,7 +94,13 @@ class TransactionManager(object):
def unregisterSynch(self, synch):
self._synchs.remove(synch)
class ThreadTransactionManager(object):
def commit(self):
self.get().commit()
def abort(self):
self.get().abort()
class ThreadTransactionManager(TransactionManager):
"""Thread-aware transaction manager.
Each thread is associated with a unique transaction.
......
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