[Zope] How do you delete an object that cannot be seen in the ZMI

Michael Long mlong@datalong.com
10 Jul 2003 17:27:03 -0400


Hi,

I have created an object in the ZODB that I cannot see in the ZMI and
now don't know how to remove it. More importantly I would like to
understand what I did so as not to do it again. I am sure more info is
needed to track down the problem but I don't know what it would be.

A brief explanation of what I am trying to accomplish. I am creating a
folderish object with its id be autogenerated. Inside of this new object
I want to create another folderish object with an id = 'Invoices'.

Here is the traceback:

Traceback (innermost last): 
 Module ZPublisher.Publish, line 98, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module Products.PRealEstate.PRealEstate, line 253, in addPParcel
 Module OFS.ObjectManager, line 272, in _setObject
 Module Products.PRealEstate.PParcel, line 139, in manage_afterAdd
 Module OFS.Folder, line 46, in manage_addFolder
 Module OFS.ObjectManager, line 244, in _setObject
 Module OFS.ObjectManager, line 77, in checkValidId
Bad Request: The id "Invoices" is invalid--it is already in use. 

Here is the code that caused it:

        def manage_afterAdd(self, item, container):
                """ Processing after creation """
             item.manage_addProduct['OFSP'].manage_addFolder('Invoices',
'')  


Thanks,
Mike