On Monday 07 July 2008 16:56:58 Mark Ramm wrote:
> >> And request.params is a multidict, so it has all your values, with
> >> nothing thrown away.
> >
> > Ah, ok. So it's essentially the J2EE-way.
>
> Well, since it's a multidict, if you treat it as a dict you get only
> the first value, but for anything where there might be multiple values
> you just call params.getall('name').
>
> Which IMHO makes more sense, because 90% of the time you want a single
> value, and when you occasionally do want a list it's easy to get.

As I mentioned above , I disagree on that. I can't throw a number into the 
discussion though. All I can say is that in my J2EE-days, I've happily moved 
to getParameters() on HttpServletRequest that always returned an array of 
strings - to have uniform parameter handling.

The least I need TG2 to do is to have an easy way to configure a parameter to 
be a list. Silently swallowing anything but the first parameter I dislike as 
well, but if others have strong opinions on that I'm ok with it.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to