On 8/24/06, Brantley Harris <[EMAIL PROTECTED]> wrote:
> No, watch for the difference between a ValidationError being raised
> and a Form exception being raised.  In the ValidationError case, it
> must be saved and returned with the other validation errors in the
> given step (1. conversion; 2. form validation; 3. model validation),
> and then finally a Form exception must be raised.

Huh?

Here's one of the example views ripped straight out of the wiki page:

def create_poll(request):
    try:
        m = Poll.CreateManipulator()
        poll = m.process(request)
        return HttpResponseRedirect('/polls/%d/' % poll.id)
    except Form, form:
        return render_to_response('polls/create.html', {'form': form})

Where is this bit about catching "ValidationError" coming from?

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to