I have a sample gist that makes a change to an object in the 
after_flush_postexec event.

https://gist.github.com/p-lewis/deb498bdfb6172bf0013

SQLAlchemy==1.0.9

As I read the documentation 
<http://docs.sqlalchemy.org/en/rel_1_0/orm/session_events.html#after-flush-postexec>,
 
I expect that the event infrastructure should detect that the object is 
dirty again, and reprocess the flush. But that does not appear to happen.

My output (ex-schema creation):

2015-11-09 20:00:30,044 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)

2015-11-09 20:00:30,045 INFO sqlalchemy.engine.base.Engine INSERT INTO 
person (name) VALUES (?)

2015-11-09 20:00:30,045 INFO sqlalchemy.engine.base.Engine ('P Body',)

In handler, p: <Person P Body>

session.dirty: IdentitySet([<Person P Body*>])

session.info: {'RENAMED': True}


Is this an issue, or am I misunderstanding the doc?


Thanks,
Patrick


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to