Re: [sqlalchemy] Modifying a relationship before it gets inserted

2012-01-16 Thread Mariano Mara
On 05.01.12 16:13, Michael Bayer wrote: On Jan 5, 2012, at 3:03 PM, Mariano Mara wrote: Hi there! I have a master-detail entity. Since I do some post-processing work on the details before inserting the entity in the db, I added an 'after_insert' event where I do the extra stuff.

Re: [sqlalchemy] Modifying a relationship before it gets inserted

2012-01-16 Thread Michael Bayer
On Jan 16, 2012, at 12:53 PM, Mariano Mara wrote: On 05.01.12 16:13, Michael Bayer wrote: On Jan 5, 2012, at 3:03 PM, Mariano Mara wrote: Hi there! I have a master-detail entity. Since I do some post-processing work on the details before inserting the entity in the db, I added an

[sqlalchemy] Modifying a relationship before it gets inserted

2012-01-05 Thread Mariano Mara
Hi there! I have a master-detail entity. Since I do some post-processing work on the details before inserting the entity in the db, I added an 'after_insert' event where I do the extra stuff. One of the things I need is to make sure certain details have been selected by the user and in case he

Re: [sqlalchemy] Modifying a relationship before it gets inserted

2012-01-05 Thread Michael Bayer
On Jan 5, 2012, at 3:03 PM, Mariano Mara wrote: Hi there! I have a master-detail entity. Since I do some post-processing work on the details before inserting the entity in the db, I added an 'after_insert' event where I do the extra stuff. One of the things I need is to make sure certain