Hei Florent !

On Dec 6, 2007 3:08 PM, Florent Aide <[EMAIL PROTECTED]> wrote:
>
> On Dec 6, 2007 5:51 PM, Fred C <[EMAIL PROTECTED]> wrote:
> >
> >
> > After upgrade to 1.0.4b3 I am getting this error.
> > Any idea why?
>
> Yep. Could you give us the request you try to do (url with full args).
> I suspect the "before_main" filter to try to encode something which is
> not a 'string'.

Agree...

Maybe we should change that code to something like:


if isinstance(v, dict):
    res[k] = encode_utf8(v)
elif isinstance(v, list):
    res[k] = [vv.encode('utf-8') for vv in v]
elseif isinstance(v, basestring):
    res[k] = v.encode('utf-8')
else:
    raise Exception("some warning about this unsupported type")



That would ease the work to identify some non-trivial use cases...



[]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
-~----------~----~----~----~------~----~------~--~---

Reply via email to