On Tue, Jul 16, 2013 at 4:22 PM, Michael Bayer <mike...@zzzcomputing.com> wrote: >> To put a cached instance into a session, you must first copy it, then >> update. How to do that, is very application-specific, and I don't >> think it can be automated. > > that's what merge(don't_load=True) does. If your object has other aspects > to it that are outside of what's mapped, then there are event hooks you can > use to re-instantiate additional state.
Oh... didn't know that. That's interesting. I've never toyed with the event system before, but I guess there's an incentive right there. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.