On Mar 9, 2014, at 8:25 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote:

> I have some lightweight revision tracking on some models.  I generate a diff 
> based on the history of the object (via inspector).
> 
> a limitation I just realized, is that this history only dates back to the 
> most recent flush() -- it doesn't date back to the initial load.
> 
> are there any existing facilities that would let me access the originally 
> loaded attributes -- prior to any flushes ?
> 
> thankfully i don't need this functionality, my code works fine as-is. i'd 
> just like to be safe and use anything better if available.


pretty much just rollback() is what we have there :).  a long time ago I looked 
into seeing if the attributes could actually store multiple savepoints and have 
rollback built in and all that, and determined it would be enormously 
complicated and have a lot of nasty edge cases too.    

-- 
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/d/optout.

Reply via email to