[sqlalchemy] Re: preview an update?

2009-06-23 Thread Catherine Devlin
On Thu, Jun 18, 2009 at 4:57 PM, Michael Bayermike...@zzzcomputing.com wrote: you can get most of this stuff from the session without any flush occurring.  at the object level are the new, dirty, and deleted collections on Session.   At the attribute level the attributes.get_history() method

[sqlalchemy] Re: preview an update?

2009-06-23 Thread Michael Bayer
Catherine Devlin wrote: (['Eduardo Jones'], (), [u'Ed Jones']) # so far so good print sqlalchemy.orm.attributes.get_history(ed.userview, 'name') ((), [u'ed'], ()) print sqlalchemy.orm.attributes.get_history(ed, 'fullname') ((), ['Eduardo Jones'], ()) ... now get_history thinks fullname

[sqlalchemy] Re: preview an update?

2009-06-18 Thread Michael Bayer
On Jun 18, 2009, at 4:27 PM, Catherine Devlin wrote: I'm building a complex ETL tool with SQLAlchemy that will sometimes need to let the user preview a changed record - not actually carry out the update, just find out which fields would be changed, and to what values. I'm having trouble