Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-29 Thread sico
So, using automatic transaction management, there is no way to cause a transaction rollback without the user seeing the exception... stink... thanks for your help! On Jun 30, 3:07 am, Karen Tracey wrote: > On Sun, Jun 28, 2009 at 11:14 PM, sico

Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-29 Thread Karen Tracey
On Sun, Jun 28, 2009 at 11:14 PM, sico wrote: > > [snip] > > However, I am still curious if there is a way to tell django to not > commit the transaction without the user seeing an exception > > Yes and no: I tried to describe that in my previous answer. Yes, you can

Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-28 Thread sico
My apologies, poorly written question (was late on Friday and I should have gone home!) What I'm doing is writing several records to the database in a single request. The errors may occur due to validation problems and I'm checking for these as I go. However the problem occurs as follows:

Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-26 Thread Karen Tracey
On Fri, Jun 26, 2009 at 12:59 AM, sico wrote: > > Hi > > Is it possible to rollback the transaction without raising an > exception when the transactions are tied to http requests?? > I'm writing several records in one post call, if any fail I'd like to > rollback the

Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-26 Thread Frédéric Hébert
2009/6/26 sico : > > Hi > Hi > Is it possible to rollback the transaction without raising an > exception when the transactions are tied to http requests?? What do you mean ? You use raw sql in a view ? > I'm writing several records in one post call, if any fail I'd

rollback transaction without an exception when transaction is tied to http requests

2009-06-25 Thread sico
Hi Is it possible to rollback the transaction without raising an exception when the transactions are tied to http requests?? I'm writing several records in one post call, if any fail I'd like to rollback the transaction but return a nice error message to the user. Surely I'm missing something as