[Zope] Running multiple transactions during single request

Chris Withers chris at simplistix.co.uk
Wed Mar 26 14:41:15 EDT 2008

Charl Coetzee wrote:
>        if everyFifthPass:
>            transaction.commit()
>            transaction.begin()
>        # end of while loop
> really does have the desired effect, where also ConflictError handling 
> etc continue to work as expected, without nasty side effects etc.

No, this does not handle conflict errors.
The conflict error will be caught in the publisher and the whole request 
will be retried, resulting in whatever commits you've manually done up 
until that point being re-done...

Why are you using commits rather than savepoints here?



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

More information about the Zope mailing list