[Zope-DB] Question: detecting aborted transactions

Chris Withers lists at simplistix.co.uk
Tue Mar 16 04:17:18 EST 2004


jelle wrote:

> I'm using python 2.1.3 -> Zope 2.6.3 -> zope python script -> ZSQL -> 
> Zpsycopg DA 1.1.11 -> postgresql 7.4.1
> 
> The zope python scripts have try-except blocks for each ZSQL call. 

unless you're cathcing specific exceptions, you don't want to be doing that...

> Unfortunately an aborted transaction is not caught in the except block.

Why should it be?

> The question is how do I detect or determine a transactions aborted
> from within a zope python script?

Why do you want to?

> My problem stems from denial of serialized access because of concurrent 
> updates.

...and in english?

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope-DB mailing list