The problem with a TransactionRollbackError is that, well, it rolls
back my transaction. Is there any way to retry the transaction or will
I have to redo whatever changes I made to my objects as well? e.g

  a = store.get(User, "Martin")
  a.access = 'unrestricted'
  store.commit() # => TransactionRollbackError

Now, is the store itself irretrievably rolled back? Is there any way
to remember that I had changed the object and just retry the commit? I
had expected this to work

try:
  store.commit()
except TransactionRollbackError
  store.commit()

but apparently it rolled back the store, not just the database transaction.

martin

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to