[ZODB-Dev] before commit hook

Florent Guillaume fg at nuxeo.com
Tue Apr 26 09:09:50 EDT 2005


Tim Peters wrote:
> def getBeforeCommitHooks(self):
> 
> Note that Zope 2.8b1 was already released (yesterday) with a ZODB 3.4 alpha,
> so strictly speaking no new features should be added to ZODB 3.4.  But if
> you can slam code and tests for this in quickly, I'll look the other way (I
> think adding a straightforward new method is about as harmless as can be).
> Just don't let Jim notice you're doing it <wink>. 

Ok done, thanks.

> Primarily I think that building 90% of an app's logic on beforeCommitHook()
> may be a mistake <wink>.

Why do you say that? I'm not building 90% of my app logic on that, it's
really just an optimization to delay some things until the end of the
transaction.

Florent


-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the ZODB-Dev mailing list