[ZODB-Dev] simple example of undo( )

Christian Reis kiko@async.com.br
Mon, 23 Sep 2002 21:42:32 -0300


On Mon, Sep 23, 2002 at 08:08:52PM -0400, Jeremy Hylton wrote:
> conn.sync()
> 
> I can't give you a better answer yet.  I'll need to get some help
> from some Zope experts.  The problem, in a nutshell, is that the
> undo() transaction operates on the database, but not on your current
> connection.  When it commits, the database sends an invalidation

abort() works in the same fashion. IIRC is has been said this is by
design, as sync() invalidates all objects that are live at that point in
time, and this would be considered rude by man applications (our
included).

> The sync() method makes this happen explicitly, but I wonder why there
> isn't some other implicit mechanism.

Can we send per-instance invalidation messages? If we can't, then I
surmise that may be the reason why it's not done implicitly.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL