Simple transaction objects for single-threaded applications.
Methods
|
|
|
|
__del__
|
__del__ ( self )
|
|
__init__
|
__init__ ( self, id=None )
|
|
__str__
|
__str__ ( self )
|
|
_init
|
_init ( self )
|
|
abort
|
abort (
self,
subtransaction=0,
freeme=1,
)
Abort the transaction.
This is called from the application. This means that we haven't
entered two-phase commit yet, so no tpc_ messages are sent.
|
|
begin
|
begin (
self,
info=None,
subtransaction=None,
)
Begin a new transaction.
This aborts any transaction in progres.
|
|
commit
|
commit ( self, subtransaction=None )
Finalize the transaction
|
|
note
|
note ( self, text )
|
|
register
|
register ( self, object )
Register the given object for transaction control.
|
|
setExtendedInfo
|
setExtendedInfo (
self,
name,
value,
)
|
|
setUser
|
setUser (
self,
user_name,
path='/',
)
|
|
sub
|
sub ( self )
|
|