[ZODB-Dev] Re: afterCommitHook
Dieter Maurer
dieter at handshake.de
Sun Sep 25 17:44:37 EDT 2005
Florent Guillaume wrote at 2005-9-24 10:10 +0200:
>Dieter Maurer <dieter at handshake.de> wrote:
>....
>> Thus, promiss the user that any persistent changes he may try
>> will be lost: Put the "afterCommit" in its own transaction and abort
>> it afterwards.
I should have added "will be lost, unless he itself commits the transaction".
>That would be a nice solution I think.
>
>What would happen though if the post-transaction user code decided to
>commit the transaction? Could that be made to work, for code that would
>like to change persistent objects?
Unless we do very special things, this ("committing" explicitly in
the "postCommitHook") will be possible.
--
Dieter
More information about the ZODB-Dev
mailing list