[Zope-dev] ZCatalog

Chris McDonough chrism@digicool.com
Fri, 30 Mar 2001 10:29:52 -0500


> So if a a method raise an exception all the things done (that involve
zodb)
> in the method will be rolled back ?

Yes.

Actually, I need to clarify that.  ZODB doesn't handle this for you.  Zope
does.  When a request in Zope starts, a transaction is started.  If the
response is sent back without an error, the transaction is committed.  If
anything prevents the response from being sent back, the transaction is
aborted.