On Dec 11, 2007 4:17 PM, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> Roger Demetrescu schrieb:
> > Forget to mention that the line:
> > elif hasattr(v, 'encode'):
> > could be changed to:
> > elif isinstance(v, basestring):
>
> I think we should also handle the case that we have a list of dicts or
> FileStorages or other non-basestrings, so
>
> res[k] = [vv.encode('utf-8') for vv in v]
>
> should become
>
> res[k] = map(encode_utf8, v)
Your "patch" is quite elegant... and I am +1 for it ;)
But I'm just curious.. how can we get a list of dicts ? I recall I
did some tests with cherrypy query string and couldn't get these kind
of objects in my controller methods.
[]s
Roger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---