Re: sqlalchemy objects in beaker cache

2008-12-17 Thread Wichert Akkerman
Previously Tomasz Narloch wrote: Andrey Plotnikov pisze: Hi, Is it safe to cache objects getting from sqlalchemy session query in beaker cache? I was done that but in that way I loose connection with sqlalchemy (Session) so You can re-associate an object with a new session.

Re: sqlalchemy objects in beaker cache

2008-12-16 Thread Tomasz Narloch
Andrey Plotnikov pisze: Hi, Is it safe to cache objects getting from sqlalchemy session query in beaker cache? I was done that but in that way I loose connection with sqlalchemy (Session) so from ... import User from ... import t_user mapper(User, t_user, properties={