Hi all, I am having a problem with the following error: Error Type: Bad Request Error Value: The id "MHC" is invalid--it is already in use. The item in question used to exist, but was deleted. The database has since been packed (at least twice). The origin of this problem seems to come from a bad Version, which locked a series of objects, and would not allow them to be modifed, nor accept version changes (it reported that there were no changes to save). I deleted the objects and started over. They now seem to be "phantom objects", and undeletable. 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 (other than chaning the object's name - which I have alredy tried successfully, but it does leave these "blocks" in the database) woudl be very welcome. Cheers, JP Glutting
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
participants (2)
-
Dieter Maurer -
JP Glutting