[sqlalchemy] Re: after_attach()

2010-10-22 Thread Kent
It looks like if has_identity(instance), then I am guaranteed it is an add, can you confirm this is accurate? Thanks, Kent On Oct 22, 5:39 pm, Kent k...@retailarchitects.com wrote: I am using a SessionExtension. The docs state for after_attach(session, instance):     Execute after an

[sqlalchemy] Re: after_attach()

2010-10-22 Thread Kent
Actually, I meant if not has_identity(instance) then I am guaranteed it is an add, correct? Kent On Oct 22, 5:56 pm, Kent k...@retailarchitects.com wrote: It looks like if has_identity(instance), then I am guaranteed it is an add, can you confirm this is accurate? Thanks, Kent On Oct

Re: [sqlalchemy] Re: after_attach()

2010-10-22 Thread Michael Bayer
has_identity() determines presence in .new or not yes On Oct 22, 2010, at 5:56 PM, Kent wrote: It looks like if has_identity(instance), then I am guaranteed it is an add, can you confirm this is accurate? Thanks, Kent On Oct 22, 5:39 pm, Kent k...@retailarchitects.com wrote: I am