[Zope-DB] Transaction again..

Gál László Gal.Laszlo at peto.hu
Fri Oct 3 07:34:25 EDT 2003


Hi!

I still have some things that I don't understand:

Let's take an example:

next_id=container.next_id()[0]
#1
container.insert_details1(fg_key=id)
#2
container.insert_details2(fg_key=id)

It is OK, that if any error occurs in the script, zope rolls back each of the zsql methods,
 but who garantees that the postges db don't change in #1 or #2.
If it is changed by an other insert for example, id is wrong.

Thanx

Lac

-- 
Europe now without walls - who needs Gates?
http://latz.linsze.hu 



More information about the Zope-DB mailing list