[Zope-dev] is there a hook for before the transaction is comm
itted
R. David Murray
bitz@bitdance.com
Mon, 5 Mar 2001 12:50:09 -0500 (EST)
On Mon, 5 Mar 2001, Tim McLaughlin wrote:
> manage_afterChange(oldItems, newItems)
> oldItems: dict of id - values before modifications
> newItems: dict of new values at end of transaction
>
> This would allow an elegant "reindex" or notification system for objects.
> It would also allow for validation (ie. raise error if you don't like
> newItems). Anyway, that's it. I'm halfway there, just can't get a method
> to be called on my object _just_ before commit.
This sounds an awful lot like the way ZPatterns works...
--RDM