[Zope] Forcing a transaction to commit
Andreas Jung
andreas at andreas-jung.com
Wed May 19 08:04:15 EDT 2004
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 at 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 at 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 )
More information about the Zope
mailing list