Re: [sqlalchemy] Re: Duplicating primary key value into another column upon insert?

2013-09-25 Thread Ken Lareau
On Tue, Sep 24, 2013 at 5:40 PM, Nicholas Long nick.studioc...@gmail.comwrote: My mind keeps going back to events but of course there's the limitation to modifying Session state while handling various events. (

[sqlalchemy] Re: Duplicating primary key value into another column upon insert?

2013-09-24 Thread Nicholas Long
My mind keeps going back to events but of course there's the limitation to modifying Session state while handling various events. ( http://docs.sqlalchemy.org/en/rel_0_7/orm/events.html#sqlalchemy.orm.events.MapperEvents.after_update ) But what about using the SQL Expression API? *Relevant code