[sqlalchemy] Re: sqlalchemy and redis caching

2011-12-26 Thread Mengu
it better with the examples, i will do a blog post. thanks again. On 25 Aralık, 01:04, Michael Bayer mike...@zzzcomputing.com wrote: On Dec 24, 2011, at 5:38 PM, Mengu wrote: hi all. i am caching my query results in redis with sqlalchemy.ext.serializer.loads/dumps. like results = DBSession.query

[sqlalchemy] sqlalchemy and redis caching

2011-12-24 Thread Mengu
hi all. i am caching my query results in redis with sqlalchemy.ext.serializer.loads/dumps. like results = DBSession.query(ShowContestant).all() and redis.set(key, dumps(results)) when i do loads(redis.get(key)) i get the obj without any problems but if i want to access any of its relations, i get

[sqlalchemy] Re: Validation of new objects before committing

2011-09-28 Thread Mengu
while we are on the subject, i'd like to ask a question if i'm doing it right or wrong. i have created a class called Validation with a method called is_valid and I have mixed it in my SQLAlchemy models. all of my models has an attribute called validation that consists of model's attributes that