On Wed, 2010-11-17 at 15:44 +0100, Romaric DEFAUX wrote: 
> After entirely rewrite my code to not use Web service but socket (a real 
> client/server program) I finally found the problem... And it's not 
> linked to the POST or GET method...
> It's because of that :
> g.db.escape_string(fields['hosted_web_site'])
> (escape_string is the function in MySQLdb library)
> It escapes the simple quote of the pickled object, and break it...
> It's good to know, NEVER escape a pickled object :)

If you are worried about the binary-ness of the pickle string you can
base64 encode it (using the base64 module).  
-- 
Adam Tauno Williams <awill...@whitemice.org>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to