>
>
> >> The idiomatic way to modify the insert/update/delete construct within a
> flush is to use MapperExtension before_insert/before_update/before_delete to
> modify the mapped object's state right before it's flushed.
>
> Is there a recipe/code which I can quickly refer to get started on
> before_insert and also how to modify a insert statement in
> before_insert?
>
>
This is the area of the docs that describe before_insert and other
MapperExtensions.  It's laid out pretty clearly and quite easy to implement:

http://www.sqlalchemy.org/docs/orm/interfaces.html#mapper-events

-- 
Michael Trier
http://michaeltrier.com/

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
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.

Reply via email to