Amit Upadhyay wrote: > On Thu, Apr 10, 2008 at 12:18 PM, Gábor Farkas <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > p.s: if there is a way to achieve this without touching > django-internals, please tell me :) > > > I would have written a view decorator that takes request, and normalizes > the request.GET/POST before calling the real view. >
that would work, but there are 2 problems with it: 1. i have to do it for every request (this could be solved maybe with a middleware-based approach) 2. it would be very hard to support things like setting the encoding of the request (in other words, if the encoding is changed in the view, the normalized data is lost) or would you do it differently? thanks, gabor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---
