How do you want to reverse the conversion from dict to string? -aj --On Samstag, 20. November 2004 22:53 Uhr -0800 David Siedband <david@calteg.org> wrote:
Is there a advantage to pickling a dictionary and storing it in a blob field rather than converting it to a string and storing it in a text field? -- David
On Nov 19, 2004, at 2:52 AM, Andreas Jung wrote:
You can convert a Python object to a byte stream by using Python's 'pickle' or 'cPickle' module -> see Python Library Reference for details and examples.
-aj
--On Freitag, 19. November 2004 11:47 Uhr +0100 baptiste Ancey <baptiste.ancey@derivexperts.com> wrote:
I use Zope for my website with a Mysql Database.
I just want to store a python dictionary to a blob column of my table.
And my problem is that i don't know how to set and get var to a blob from a script for example... I see some blob example on the web but always with file variable (thumbnails ...) never with the other kind of variable.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )