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

Michael Long mlong@datalong.com
11 Jul 2003 15:39:34 -0400


Deiter,

When you say class attribute would that include the methods defined in a
class? If so I see the problem. 

Thanks,
Mike


On Fri, 2003-07-11 at 14:33, Dieter Maurer wrote:
> Michael Long wrote at 2003-7-10 17:27 -0400:
>  > 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'.
>  > ...
>  >  Module OFS.ObjectManager, line 77, in checkValidId
>  > Bad Request: The id "Invoices" is invalid--it is already in use. 
> 
> "Invoices" is either an instance or a class attribute.
> 
> You can delete an instance attribute with "delattr(instance,name)" (
> only in trusted Python code). To remove a class attribute, you
> must remove it in the source, as otherwise it will be recreated
> when Zope starts for the next time.
> 
> 
> Dieter
> 
>