Commit 868ca805 authored by Jeremy Hylton's avatar Jeremy Hylton

Add note about sortKey() and fix typo.

parent be274b6c
...@@ -17,12 +17,15 @@ ...@@ -17,12 +17,15 @@
class TM: class TM:
"""Mix-in class that provides transaction management support """Mix-in class that provides transaction management support
A sub class should call self._register() whenever it performs A sub class should call self._register() whenever it performs any
any transaction-dependent operations (e.g. sql statements). transaction-dependent operations (e.g. sql statements).
The sub class will need to override _finish, to finallize work, The sub class will need to override _finish, to finalize work,
_abort, to roll-back work, and perhaps _begin, if any work is needed _abort, to roll-back work, and perhaps _begin, if any work is
at the start of a transaction. needed at the start of a transaction.
A subclass that uses locking during transaction commit must
defined a sortKey() method.
""" """
_registered=None _registered=None
......
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