[Zope] Undo log
Mark Gibson
mark@kaivo.com
Tue, 13 Aug 2002 13:30:24 -0600
Thanks Chris,
This is just what I was looking for. I was able to put the
get_transaction().note() in code that was executing within the
transaction, so no issues with breaking transactions.
Mark
Chris McDonough wrote:
> You'd need to write the code in a Python product or an external
> method and it would need to do something like this:
>
> self.delSomething()
> get_transaction().note('Something deleted')
> get_transaction().commit()
> self.editSomething()
> get_transaction().note('Something edited')
> get_transaction().commit()
>
> Note that this "breaks" Zope's underlying concept that one web
> request is equal to one transaction, because the first commit will
> commit anything that has happened before it.
>
> - C
>
> ----- Original Message -----
> From: "Mark Gibson" <mark@dimensional.com>
> To: <zope@zope.org>
> Sent: Tuesday, August 13, 2002 1:51 PM
> Subject: [Zope] Undo log
>
>
>
>> Is there any way to log specific messages, or customize the
>
> message a
>
>> transaction leaves in the undo log? I have a method that does a
>
> both
>
[stuff deleted]