[ZODB-Dev] preventing a transaction from committing within appcode

Kapil Thangavelu hazmat at objectrealms.net
Fri Sep 10 00:29:21 EDT 2004


another similiar option is via a txn observer pattern

a simple txn observer implementation
http://svn.objectrealms.net/browse/occams/versioning/trunk/transaction.py?rev=164&view=auto


cheers,

-kapil


On Thu, 2004-09-09 at 05:12, Chris McDonough wrote:
> On Wed, 2004-09-08 at 22:01, Tim Peters wrote:
> > [Dieter Maurer]
> > > This has been discussed before. There was a real proposal.
> > > But Jeremy asked why not simply add a transaction client (via
> > > "transaction.register") that raises an exception on "tpc_vote".
> > >
> > > Thus, you get what you want without any API change.
> > >
> > > The proposer was convinced by Jeremys argument.
> > 
> > Chris, did that make sense to you?  
> 
> Yes it does.  That's a fine idea, it solves my problem completely and
> without any API changes.
> 
> > Even Jeremy has apparently forgotten
> > that by now <wink>, but it should work.  Here's a concrete example that
> > works as the comments say it works:
> 
> Wow, creating an example is above and beyond, thanks!
> 
> - C

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20040910/121347c5/attachment.bin


More information about the ZODB-Dev mailing list