SQLTransactionAware
index
/usr/local/zope/zope1/Products/Hornet/SQLTransactionAware.py

# Based on http://mail.zope.org/pipermail/zodb-dev/2001-July/001180.html
# And code from the ZMysqlDA adapter

 
Classes
       
SQLTransactionAware
Surrogate

 
class SQLTransactionAware
    Mix-in class that provides transaction management support
 
A sub class should call _register() whenever it performs
any transaction-dependent operations (e.g. sql statements).
 
The sub class will need to override:
  _begin if necessary
  _vote to raise an except if necessary
  _finish to finallize work,
  _abort to roll-back work
  _postCommit to guaruntee all commit processing is done
 
This is similiar in nature to TM.py and some ZPatterns code.
 
  Methods defined here:
abort(self, *args)
commit(self, *args)
tpc_begin(self, *args)
tpc_finish(self, *args)

 
class Surrogate
     Methods defined here:
__init__(self, db)