[web2py] Re: Database error from constraint violation seemingly ignored

2012-02-08 Thread Cliff
+1 > but if the Ajax request > fails (which I assume happened in your case), I don't think any feedback is > displayed to the page. Perhaps we should correct that -- first check the > response of the Ajax request, and only remove the row from the grid if it > was successful, otherwise flash an err

[web2py] Re: Database error from constraint violation seemingly ignored

2012-02-08 Thread Mark Kirkwood
You are correct, I was clicking the delete button on the grid. Yes, I think checking the success or otherwise of the Ajax request sounds like the right thing to do - since calls to the db can fail for all sorts of reasons, not just constraints. Regards Mark Anthony wrote: In your case, wer

[web2py] Re: Database error from constraint violation seemingly ignored

2012-02-08 Thread Anthony
On Wednesday, February 8, 2012 2:16:21 AM UTC-5, Mark Kirkwood wrote: > > Sorry, I was not being all that clear. What I meant to say was: > > When I try to delete such a record, instead of the form telling me that > the delete was prevented it appears to have succeeded. However a refresh of > th

[web2py] Re: Database error from constraint violation seemingly ignored

2012-02-07 Thread Mark Kirkwood
Sorry, I was not being all that clear. What I meant to say was: When I try to delete such a record, instead of the form telling me that the delete was prevented it appears to have succeeded. However a refresh of the form shows the record survived (and obviously the database log tells us why)!