[Zope] ERROR: id already in use (deleted item)

Dieter Maurer dieter@handshake.de
Mon, 22 Apr 2002 22:21:44 +0200


JP Glutting writes:
 > ...
 > I had this problem with "phantom objects" going back as far as Zope 
 > 2.1.x, but I had hoped it was fixed.
 > 
 > Any pointers to tools for debugging the ZODB, or tricks for orking 
 > around this
Define PYTHONPATH such that Zope's "lib/python" is found.

python
	import Zope
	R= Zope.app() # the root object
	R.F1.F2.d     # traversal to "d"
	db= d.aq_base # unwrapped object
	dir(db)	      # "d"s attributes
	d.MHC	      # the bad MHC attribute, maybe inherited or acquired
	....

After you modified the ZODB, you need to commit your changes:

        get_transaction().commit()


For more information search Zope.org or the mailing list archives
for "get_transaction"...


Dieter