Field('data','text',filter_in=(lambda x:
pickle.dumps(x)),filter_out=(lambda s: s and pickle.loads(s)),default=None)
On Wednesday, December 12, 2012 12:12:33 PM UTC-6, Andriy wrote:
>
> I`m sorry if this is naive question (I`m trying to make my first web
> application). I have a big dictionary with several levels of nested
> dictionaries and lists in it. DAL accepts this dictionary if I insert it in
> a Field of a Table (using sqlite3), but when I try to retrieve it back, I
> get long string (<type 'str'>), not a dict. Is there a way to convert this
> string back to dictionary? If not, how should I store such dictionary in
> database? I understand, that I can make many-many Tables connected to
> one-another, but may be there is easier solution?
>
--