Re: [sqlalchemy] serialize list

2011-09-13 Thread Hector Blanco
I'm not sure if this will be helpful, but I found the types decorators very useful : http://www.sqlalchemy.org/docs/core/types.html#typedecorator-recipes You can basically keep a list() in your instances and do something when you want to save it in the database (such as saving them as a comma

[sqlalchemy] serialize list

2011-09-02 Thread Sebastian Elsner
Hello, I want to serialize a python list, which by convention can only contain strings and save it to mysql database in on column. I was thinking about an unicode column and an attribute event which just does a str(list) for saving and a eval(string) for access. I am not sure though if this