Table of Contents

Class: Transaction Zope-2.2.1-src/lib/python/ZODB/Transaction.py

Simple transaction objects for single-threaded applications.

Methods   
__del__
__init__
__str__
_init
abort
begin
commit
note
register
setExtendedInfo
setUser
sub
  __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.

Exceptions   
t
  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

Exceptions   
POSException.TransactionError
t
  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 )


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6