I correct myself

On 12 Mag, 11:05, Alessandro Dentella <san...@e-den.it> wrote:
> Hi,
>
>   in a sessionExtension.after_flush hook I create objects (namely todo
>   actions depending on what people have inserted/updated).
>
>   At present I create these objects in the current session, but I do
>   understand is not clean as the flush has already occurred. It almost
>   works, objects are really created but are left in the dirty set.


I didn't realize I entered twice in the after_flush... I guess once
the first
'normal' and the second for the newly created object.

This seems to confirm the fact that we can create objects even from
withing
the after_flush hook and have them saved in the same session. Good!

sandro
--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to