On Sat, Jul 4, 2009 at 12:27 PM, adrian <[email protected]> wrote: > > > This view shows a cart and processes a cart submission. You can try > it on our staging server at: > > http://tixsa.giantbyte.com > > You'll have to find an event with tickets and add it to your cart. > > The code in question is: > > http://dpaste.com/hold/63158/ > > Everything works fine on FF. On IE, everything is fine if the user > clicks on the Checkout button which posts to this same view. But the > ticket quantity box is user-editable and if the user clicks in it and > hits the Return key, it generates this error (with a useless > traceback): > > ValueError at /cart/view/ > The view cart.views.view didn't return an HttpResponse object. > > But every branch in the function seems to call HttpResponseRedirect. > > Here's the view (or use dpaste above). Does anyone know what's going > on? >
No idea. Some things to try -- Put a return None in the function so force it to fail the same way under Firefox as it is under Explorer, then compare the request contents (expand the local variable section of the debug page) to see if some difference between what the two browsers are sending gives a clue. This may or may not produce anything useful, but it's a pretty easy first thing to try. Can you recreate the problem with the development server? If yes, run it under a debugger and step through the view to see how it is coming to return None. If no, add logging into the view to track what's going on. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

