Re: roll back

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.web.zope.database
Organization eGenix.com
Message-ID <op.te2hrqa0y861uf@localhost>
Am 30.08.2006, 00:44 Uhr, schrieb Maslak, Michael  
<[email protected]>:

> Did what you suggested. That is, removed the BEGIN TRANSACTION & COMMIT
> TRANSACTION statements. It has the same behavior: a non-atomic commit.
> No roll back. mat1 has a new record mat2 errors.

Please keep your reply on list.

<dtml-except>

   <dtml-raise MAT_SQL_FAILURE> <dtml-var error_value></dtml-raise>

I don't use DTML - but if your DTML maps to a
try:
	this()
except:
	that()

Then you are still acting outside the Zope transactional management! I  
suggest you rewrite your code to use two ZSQL methods and call them from a  
PythonScript
simply
context.mat_1()
content.mat_2()

It's easier than you think.

Charlie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.