Re: [ZODB-Dev] Transaction undo example

2005-04-12 Thread Patrick DECAT
Hi, if you want to abort the current transaction, here is a sample inspired from Zope's code: def some_method(self, REQUEST, RESPONSE): Do stuff try: # Do important stuff RESPONSE.setStatus(204) except: RESPONSE.setStatus(500)

Re: [ZODB-Dev] Transaction undo example

2005-04-12 Thread Patrick DECAT
for your answer! But my problem is not exactly this one. In fact I have a committed transaction and I want to undo it. It doesn't concern the current transaction... Maybe my first question was not clear... Thanks, Stefan On Apr 12, 2005 12:28 PM, Patrick DECAT [EMAIL PROTECTED] wrote: Hi