[sqlalchemy] Re: Running initialization code after creating/loading an object

2007-03-02 Thread Sanjay
Hi Rick, This was exactly what I needed. Thanks a lot! Sanjay (I think I wrote this message yesterday also, which did not appear. Might have pressed the discard button?!) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[sqlalchemy] Re: Running initialization code after creating/loading an object

2007-02-28 Thread Rick Morrison
Hi Sanjay, Mapper Extension is the way to do this. I use one we call our compiler extension, it fires events before database insert, datase update and after database load; you can use these events to modify the object as needed. You can probably hack this into what you need: class