Commit f5344562 authored by Jim Fulton's avatar Jim Fulton

Got rid of some commented out code and cleaned up a bit of code

checking for subtransactions.
parent d24cf52e
......@@ -84,8 +84,8 @@
##############################################################################
"""Transaction management
$Id: Transaction.py,v 1.12 1999/07/22 15:03:09 jim Exp $"""
__version__='$Revision: 1.12 $'[11:-2]
$Id: Transaction.py,v 1.13 1999/08/11 13:56:21 jim Exp $"""
__version__='$Revision: 1.13 $'[11:-2]
import time, sys, struct
from struct import pack
......@@ -205,15 +205,11 @@ class Transaction:
while objects:
o=objects[-1]
j=getattr(o, '_p_jar', o)
#if j is None:
# print 'waaa'
# print o, o._p_oid
# raise 'what the hell'
i=id(j)
if not jars.has_key(i):
jars[i]=j
if subtransaction: subj[i]=j
if subtransaction:
subj[i]=j
j.tpc_begin(self, subtransaction)
else:
j.tpc_begin(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment