To make zope.sqlalchemy commit unconditionally each transaction you can 
configure it with initial_state='changed'.

    zope.sqlalchemy.register(Session, initial_state='changed')

Laurence

On Monday, 11 May 2015 08:52:50 UTC-7, Jonathan Vanasco wrote:
>
> `mark_changed()` is what you want, for the reasons that Michael mentioned. 
>  
>
> if you want the convenience of his second method with a negligible 
> performance hit, you could write a sqlalchemy event listener that calls 
> mark_changed whenever `execute()` is called.
>
> personally, I think it's better to use `mark_changed()` because it's more 
> apparent and "standard" when looking at the code during maintenance.
>

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

Reply via email to