John Lavoie wrote:
> Is there any way to auto save/commit? All of the
> SA docs I have seen say that I need to force it with
> session.save and session.flush

Jonathan, you might be interested in providing a context manager with
SQLAlchemy to do this (for Python 2.5+); that would allow users to use
a 'with' block. See
http://projects.amor.org/dejavu/browser/trunk/test/test_context.py for
an example of usage, and steal my implementation if you want:
http://projects.amor.org/dejavu/browser/trunk/arenas.py#L655 (yes, it
really can be that simple ;).


Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to