[Zope-dev] ZPatterns and Transactions

Phillip J. Eby pje@telecommunity.com
Thu, 31 May 2001 10:07:01 -0400


At 03:24 PM 5/31/01 +0200, Roch=E9 Compaan wrote:
>I have a ZPatterns application that uses the ZODB as storage.  When I=
 delete
>an object only the name of the script that deleted the object is shown in
>the Undo log.  Is there any way to determine the ID of the object that was
>deleted?  Is there a way that one can get a handle on the object that was
>deleted?

This is actually a ZODB question, effectively.  The Transaction object used=
=20
in ZODB does allow you to annotate transactions with additional=20
information.  But you can only access this information through a (full=20
privilege) script, not through the web.

It may be that you want to rearrange your methods so that the user is going=
=20
to object/deletionMethod, instead of to a general deletion method.  Then=20
you will see in the transaction log precisely which object was deleted.