[Zope-dev] saving dictionaries in MySQL database with using existing connection

R. David Murray bitz@bitdance.com
Tue, 13 Aug 2002 14:54:45 -0400 (EDT)


On 13 Aug 2002, Axel Bock wrote:
> it into the database), but this is not what I intend.
> I want to say something like this (very, very roughly!):
> 		db.save(dictionary)
> ...and Zope should put my dict into the db. Serialized.
>
> Does anyone know whether this is possible or not, and if yes, how?

Pickle it into a string and store the string.  Unpickle it when you
retreive it.  But why not just store it in the zodb?

--RDM