[ZODB-Dev] transaction observer iface
Kapil Thangavelu
hazmat at objectrealms.net
Fri Feb 20 12:40:14 EST 2004
i'm interested in implementing an observer interface for transactions,
something along the apis of the following. i was curious if there was
interest/support for this sort of development.
-kapil
class ITransactionObserver:
def notifyAbort( txn ):
"""
invoked when the transaction is about to abort
"""
def notifyCommit( txn ):
"""
invoked when the transaction is about to commit
"""
def notifyBegin( txn ):
"""
invoked when the transaction begins...
"""
def notifyObjectRegistered( txn, object):
"""
invoked when an object registers for the transaction
"""
def register( txn):
"""
used to register an observer for the transaction
"""
def unregister( txn ):
"""
used to remove an observer from a transaction
"""
More information about the ZODB-Dev
mailing list