Hi Gerhard, On 4/7/06, Gerhard Häring <[EMAIL PROTECTED]> wrote: > TypeError: argument 1 must be str, not unicode > > I debugged this a little, and the reason is that the username gets passed as > Unicode string, and then SQLObject does something like > "SELECT %s FROM %s WHERE %s = %s" % (...) where Unicode strings get put into > a bytestring and the result is a Unicode string. Finally, psycopg chokes on > the Unicode string. > > This didn't happen in the 0.9trunk versions I used to use. Did something > change? That form fields are now Unicode strings, for example? Or did > SQLObject get a new bug?
We've turned on CherryPy's DecodingFilter. You can turn it off if you wish. (decoding_filter.on = False in the [/] section of your config should do it.) Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

