[ZODB-Dev] transaction observer iface
Kapil Thangavelu
hazmat at objectrealms.net
Fri Feb 20 12:49:33 EST 2004
whoops... the register/unregister method would be on the transaction not
the observer.
def registerObserver(self, observer): pass
def unregisterObserver(self, observer): pass
On Fri, 2004-02-20 at 12:40, Kapil Thangavelu wrote:
> 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
> """
>
>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list - ZODB-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
>
More information about the ZODB-Dev
mailing list