oh also you might want to use attributes.set_committed_state instead of setattr() so that the history is cleared.
On Feb 28, 2012, at 4:08 PM, Kent wrote: > Is there a simple way to revert all columns back to their committed > state (some columns may be synonyms), or do I need to loop through > mapper.iterate_properties, get the ColumnProperty ones, make sure they > aren't aliases (prop.columns[0] is Column) and use setattr() to set > the value back to the attributes.history's deleted? > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
