Using MySQLdb-1.2.1p2 I get a 'ascii' codec can't decode byte 0x8b in position 50: ordinal not in range(128) when using SQLObject to insert data into the database:
mldata(uid=uid,data="">

This does work:
cur.execute("INSERT INTO mldata (uid,data) VALUES (%s,%s)",(uid,MySQLdb.Binary(gzipped.getvalue())))

Also, If I use SQLObject and run into a IntegrityError my TG app locks up hard. Is this expected behavior? What do I do to continue the request? 

regards
/rune

---------------------------------------------------------------------

Behind the firewall, nobody can hear you scream...



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

Reply via email to