Re: Storing objects in relational database

2008-05-23 Thread nayden
and then I try to restore the object with the following code def success(rv): print "success" str = cStringIO.StringIO(libpq.PgUnQuoteBytea(rv[0][0])) i = cPickle.load(str) i.toString() the execution fails just after the print statement, and I am not quite sure why is that. I wo

Storing objects in relational database

2008-05-23 Thread nayden
I started playing with python a few weeks ago after a number of years of perl programming and I can say that my first impression is, unsurprisingly, quite positive. ;) The reason I am writing here is that I can't seem to figure out how to save/restore python objects into a relational database. The