Re: The create/update/delete generic views need a 'message' parameter...

2006-11-17 Thread jp
Nymbl, I definitly agree that something like that would be ideal and is important if developers are able to get the full power out of generic views. On Nov 14, 8:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have an idea. Instead of a 'message' parameter, there could be a > on_success

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-14 Thread [EMAIL PROTECTED]
I have an idea. Instead of a 'message' parameter, there could be a on_success, on_error callable parameter in the function. I don't know what the parameters to the callback would be, but this is the rough idea: def on_error(request, ?other parameters?): request.session['message] = "Not saved

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
You are correct Collin. :) I noticed that myself but couldn't go back and edit it or anything. James, also I noticed that the messages system even with authenticated users won't work properly with generic views because again, there is no way to know whether the update/creation was a success or n

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread Collin Grady
Point of clarification, it'd be a GET param, since you can't add POST in a redirect ;-) -- I do not fear computers. I fear the lack of them. -- Isaac Asimov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
James, I discussed with you some on IRC earlier my situation, but I'll bring it up here so others can read it. The problem with your suggestion is it will only work for authenticated users. If you have anonymous users, using messages like that simply won't work. The Django docs suggest using the

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread James Bennett
On 11/13/06, jp <[EMAIL PROTECTED]> wrote: > Something that is fairly common in web applications are indicator > messages. For example, after you've posted an article, the site should > echo back to you 'Article x created'. This is important because it > let's the user know what is going on. You

The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
Something that is fairly common in web applications are indicator messages. For example, after you've posted an article, the site should echo back to you 'Article x created'. This is important because it let's the user know what is going on. Unfortunately with Django generic views, particularly t