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
I believe you should then use the manage_undo_transactions method as used in the undo.dtml form. Something like: context.manage_undo_transactions(transaction_info=('QTF5TVlhNjdtTXc9')) HTH, Patrick. On Apr 12, 2005 2:09 PM, Stefan Milenkovic [EMAIL PROTECTED] wrote: Hello, Thank you for