On Dec 13, 2005, at 2:56 PM, Jonathan LaCour wrote:

            try:
                try:
                    value = func(*args, **kwargs)
                except:
                    conn.rollback()
                    raise
                else:
                    conn.commit()
                    return value
                finally:
                    sqlhub.processConnection = old_conn

I think you want to unindent that last 'finally'... the block inside the outer try will always fail in that form.

Yes, that was an email formatting error :)

I ended up trying to use the AutoConnectHub in my backend application instead of manually using the connection and transaction, and I think this may have fixed the problem. I am leaving the processing running overnight to make absolutely sure :)

It seems that you have to do some really wacky stuff to make transactions work properly in SQLObject.

--
Jonathan LaCour
http://cleverdevil.org

Reply via email to