Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-03 Thread bruno desthuilliers
On 3 oct, 15:44, bruno desthuilliers <[EMAIL PROTECTED]> wrote: (snip) Re-reading this (wrote it a bit in hurry) I'm afraid the tone is a bit harsh and controversial. Michael, please accept my apologies, I didn't mean to flame you - just explain why I disagree with you on this point. --~--~--

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-03 Thread bruno desthuilliers
On 3 oct, 01:34, Michael <[EMAIL PROTECTED]> wrote: > On Thu, Oct 2, 2008 at 6:23 PM, bruno desthuilliers < > > > > [EMAIL PROTECTED]> wrote: > > > On 2 oct, 16:51, Michael Newman <[EMAIL PROTECTED]> wrote: > > > Kurczak; > > > > Short of this is, catching specific errors in the save method and

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-02 Thread Michael
On Thu, Oct 2, 2008 at 6:23 PM, bruno desthuilliers < [EMAIL PROTECTED]> wrote: > > On 2 oct, 16:51, Michael Newman <[EMAIL PROTECTED]> wrote: > > Kurczak; > > > > Short of this is, catching specific errors in the save method and > > displaying them to the user are hard and you might be regurgitat

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-02 Thread bruno desthuilliers
On 2 oct, 16:51, Michael Newman <[EMAIL PROTECTED]> wrote: > Kurczak; > > Short of this is, catching specific errors in the save method and > displaying them to the user are hard and you might be regurgitating > items back to the user that they really don't have any business seeing > (SQL errors,

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-02 Thread Kurczak
Thank you for your input. I'd rather use forms and clean_ method, but I need to get object's pk (it object exists in db), is there any proper way to get it? I know I can override form's __init__ and pass the model, but I can't figure out which method creates the form and if I can pass model from t

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-02 Thread Kurczak
Amazing! Thank you so much. Kurczak On 2 Paź, 20:24, Michael <[EMAIL PROTECTED]> wrote: > > Thank you for your input. > > I'd rather use forms and clean_ method, but I need to get > > object's pk (it object exists in db), > > is there any proper way to get it? > > I know I can override form's __i

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-02 Thread Michael
> > > Thank you for your input. > I'd rather use forms and clean_ method, but I need to get > object's pk (it object exists in db), > is there any proper way to get it? > I know I can override form's __init__ and pass the model, but I can't > figure out which method creates the form and if I can pa

Re: Catching Exceptions thrown in .save() - django 1.0

2008-10-02 Thread Michael Newman
Kurczak; Short of this is, catching specific errors in the save method and displaying them to the user are hard and you might be regurgitating items back to the user that they really don't have any business seeing (SQL errors, programming errors, etc.). The best way to check for the proper values