[XML-SIG] [Bug #124839] DbDom : reader.releaseNode fails on DocumentFragments

noreply@sourceforge.net noreply@sourceforge.net
Thu, 7 Dec 2000 03:11:10 -0800


Bug #124839, was updated on 2000-Dec-07 03:11
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: DbDom : reader.releaseNode fails on DocumentFragments

Details: releaseNode calls FreePersistentObject on DF, which are not persistent objects. And fails miserably...

sample code (doc is a DocumentImp object)

>>> fragment='''<children><node1/>
... <node2/></children>'''
>>> r = Reader.Reader()
>>> f = r.fromString(fragment,doc)
>>> r.releaseNode(f)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/Ft/DbDom/Reader.py", line 30, in releaseNode
    FreePersistentObject(doc)
  File "/usr/lib/python1.5/site-packages/Ft/Ods/__init__.py", line 57, in FreePersistentObject
    obj._pseudo_del()
AttributeError: _pseudo_del


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