[XML-SIG] [Bug #124521] 4ODS : transaction.begin() throws unexpected exception

noreply@sourceforge.net noreply@sourceforge.net
Tue, 5 Dec 2000 02:36:03 -0800


Bug #124521, was updated on 2000-Dec-05 02:36
Here is a current snapshot of the bug.

Project: Python/XML
Category: 4Suite
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: AFayolle
Assigned to : Nobody
Summary: 4ODS : transaction.begin() throws unexpected exception

Details: 
When calling begin() on a transaction that has just been commited, a TransactionInProgress exception is raised. My reading of the ODMG C++ and Java bindings (p 179 and 252) is that this should not occur. I'm using 4Suite 0.10.0. 


>>> from Ft.DbDom import Dom
>>> from Ft.Ods import Database
>>> from xml.dom import ext
>>> import sys, os
>>> DBNAME=os.environ.get("ODS_TEST_DB","ods:test")
>>> db = Database.Database()
>>> db.open(DBNAME)
>>> tx = db.new()
>>> tx.begin()
>>> from Ft.DbDom import Reader
>>> r = Reader.Reader()ader
>>> f = open('/home/alf/memory.xml') # or some other file
>>> doc = r.fromStream(f)
>>> db.bind(doc,'memory')
>>> tx.commit()
>>> tx.begin()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/Ft/Ods/Transaction.py", line 54, in begin
    raise TransactionInProgress()
Ft.Ods.Transaction.TransactionInProgress: <Ft.Ods.Transaction.TransactionInProgress instance at 84f2ea0>


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124521&group_id=6473