On Nov 1, 2010, at 3:52 PM, Daniel Meier wrote:

> Thanks Michael
> 
> I must admit that I completely misunderstood the session. It was clear
> to me that everything done until session.commit() is in a transaction,
> but I somehow had no idea how to implement it and ended up creating
> those micro-sessions.. Still not sure where to put the business
> logic.

well in a strict sense the control of transactions would be outside of the 
business logic and instead in the application logic, where "business logic" 
means the specific use cases your application is delivering, and "application 
logic" refers to the plumbing and scaffolding that the business logic lives 
inside.    If django had some kind of "do this before every request/do this 
after every request" kind of hook, that would likely be the appropriate place.


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@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