Re: [sqlalchemy] Event handler execution order for the same target/identifier

2018-09-18 Thread Dmytro Starosud
Thanks a lot Mike! вт, 18 вер. 2018 о 16:07 Mike Bayer пише: > On Tue, Sep 18, 2018 at 7:07 AM Dmytro Starosud > wrote: > > > > Hello group > > > > Please help me with the following. Imagine I have: > > > > @event.listens_for(Session, 'before_flush') > > def one(session, flush_context, instance

Re: [sqlalchemy] Event handler execution order for the same target/identifier

2018-09-18 Thread Mike Bayer
On Tue, Sep 18, 2018 at 7:07 AM Dmytro Starosud wrote: > > Hello group > > Please help me with the following. Imagine I have: > > @event.listens_for(Session, 'before_flush') > def one(session, flush_context, instances): > pass > > > @event.listens_for(Session, 'before_flush') > def two(session

[sqlalchemy] Event handler execution order for the same target/identifier

2018-09-18 Thread Dmytro Starosud
Hello group Please help me with the following. Imagine I have: @event.listens_for(Session, 'before_flush') def one(session, flush_context, instances): pass @event.listens_for(Session, 'before_flush') def two(session, flush_context, instances): pass I.e. two handlers for the same targe