[ZODB-Dev] preventing a transaction from committing within app code

Dieter Maurer dieter at handshake.de
Wed Sep 8 15:51:17 EDT 2004


Chris McDonough wrote at 2004-9-8 11:38 -0400:
>Is there or should there be an API within ZODB which would allow app
>code to manually mark a transaction (or a connection) as
>"uncommittable"?

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.

-- 
Dieter


More information about the ZODB-Dev mailing list