Mark Ramm schrieb:
> Unicode is awesome.   Unicode sucks.
> 
> OK, now that I've got that off my chest, here's the deal.   The fact
> that TurboGears turns incoming request prams into controller function
> params seems intuitive and smart to me.   But there are some
> limitations:
> 
> * Function params must  have asci string names
> * Function params can have only one value
> 
> The second issue is not really that big of a deal, because how often
> do people use the fact that HTTP params can be multi-valued?   And we
> provide request.params (a unicode multi-dict) just in case you need to
> get at the full set of params.
> 
> But the first is a common enough issue that I think it could be a
> problem for TG2, because it could cause unexpected behavior.   In Py3k
> this will not be an issue anymore because we'll be able to use unicode
> characters in python identifiers.

<snip/>

A few comments:

a) I sure do want multiple values for one parameter! Unless I'm greatly 
misunderstanding you, I wonder why you think that e.g. lists of 
checkboxes with the same name or multiple selection lists are uncommon?

b) we for sure should convert values to unicode. Putting this burden 
upon the developers will increase the number of problems.

c) I tried to find something opposing in the HTTP specs, but it appears 
that you are right that even keys can be of arbitrary charsets. I 
thought otherwise. But even if it is _allowed_, I don't think it is 
really a problem - because the developer has control over this. Nobody 
is forced to use encoded keys. If somebody choses so, and because of 
python's literal limits, he is on his own there, and must the fetch the 
values from the request-object.

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