[Zope-dev] what transaction does get_transaction().commit() really
commit?
Shane Hathaway
shane@digicool.com
Mon, 18 Jun 2001 10:52:46 -0400
Jephte Clain wrote:
> the question is: what transaction is commited with
> get_transaction().commit() ? It is only the one associated
> with the connection, or also the transaction in which is the
> caller?
> I mean, if my method is called from within Zope, is the
> transaction of the caller commited?
In the default implementation, there is one transaction per thread.
When you commit(), you commit everything your caller changed as well.
Connections are somewhat independent of transactions, if that helps.
Shane