[Zope-dev] Re: get_transaction().commit() stops execution
Tres Seaver
tseaver at palladion.com
Wed Sep 6 07:07:06 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
zope-dev at rosenthaltechnologies.com wrote:
> In my custom Zope Product (in python), get_transaction().commit() halts
> execution (without throwing an exception).
>
> Is this the proper behavior?
Nope.
> If it is, then how do you commit what you've done so far without halting
> execution?
The 'get_transaction' bit has been deprecated in recent versions of ZODB
/ Zope. The equivlaent non-deprecated spelling is::
import transaction
transaction.commit()
> And, if not, what would cause it to halt execution?
I've never seen such a thing. Is there anything at all in your logfiles
which provdes a clue? If all else fails, you could set a breakpoint
just before the 'commit' call and try stepping over /into it.
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE/qva+gerLs4ltQ4RAjzjAKDLZT08oqS554CIh2gpWHwWzh2nVwCgxCmt
VWs4x+VOV+zikJsYuel3tmE=
=1WmK
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list