[sqlalchemy] Re: Session.merge vs. mapper extensions
On Apr 30, 2008, at 11:24 PM, Rick Morrison wrote: > right, sorry, before_insert yeah if the INSERT is happening, and its in _save_obj(), the before_insert is there. theres no "insert the row but dont call before_insert" going on. Can you dig into it some more ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~--~~~~--~~--~--~---
[sqlalchemy] Re: Session.merge vs. mapper extensions
is not being called. as you call tell, I'm having trouble with the keyboard tonight. first message was a typo, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~--~~~~--~~--~--~---
[sqlalchemy] Re: Session.merge vs. mapper extensions
right, sorry, before_insert On Wed, Apr 30, 2008 at 11:18 PM, Michael Bayer <[EMAIL PROTECTED]> wrote: > > > On Apr 30, 2008, at 10:47 PM, Rick Morrison wrote: > > > I just started using session.merge, and I noticed that on > > session.flush(), the before_update mapper extension for the objects > > that have been merged into the session are not called. > > > > These are new instances, not previously persisted. > > so..before_insert() would be called in that case no ? > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~--~~~~--~~--~--~---
[sqlalchemy] Re: Session.merge vs. mapper extensions
On Apr 30, 2008, at 10:47 PM, Rick Morrison wrote: > I just started using session.merge, and I noticed that on > session.flush(), the before_update mapper extension for the objects > that have been merged into the session are not called. > > These are new instances, not previously persisted. so..before_insert() would be called in that case no ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~--~~~~--~~--~--~---