Hi, why I cannot call a Session().begin(nested=True) inside an after_flush
event? I've tried this inside before_flush and it's work.
My work flow as below :
- work on model
- Session().commit()
- begin before_flush
- begin nested
- do an update/delete/insert on related object
- commit
- end before_flush
- begin after flush
- begin nested
- do an update/delete/insert on related object
- commit
- begin nested
- create version object every update/deleted object
- commit
- end before_flush
I use Declarative extension and scoped_session.
Thanks,
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sqlalchemy/-/H0UXpUkeSh0J.
To post to this group, send email to [email protected].
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.