Hi all, Is there a way using a python script to force a transaction to commit? For example, I would like to start a script by clicking a button on a page and then close my browser. The problem is that when the transaction can't complete due to the closed connection, everything gets rolled back. I would like for the script to run and then commit, regardless. Any ideas? Thanks, Kevin
get_transaction().commit() but this works only in trusted code (means you should call this from with in an external method). -aj --On Mittwoch, 19. Mai 2004 7:54 Uhr -0400 Kevin Carlson <khcarlso@bellsouth.net> wrote:
Hi all,
Is there a way using a python script to force a transaction to commit? For example, I would like to start a script by clicking a button on a page and then close my browser. The problem is that when the transaction can't complete due to the closed connection, everything gets rolled back. I would like for the script to run and then commit, regardless. Any ideas?
Thanks,
Kevin
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Andreas Jung -
Kevin Carlson