[Zope] Orphan Object IDs

Stefan H. Holek stefan@epy.co.at
Sat, 21 Apr 2001 00:56:00 +0200 (CEST)


My second guess is that your problem is not a stray *object* (you should
see *any* object in the management interface, IMHO) but a left over *meta
type*. This happened to me once and I wrote the following note to myself:

<quote>
Getting rid of dangling meta types (improperly deleted
Products/Factories)

> Shut down Zope, run python in the /Zope/lib/python directory, and
> execute the following code:
>
> >>> import Zope
> >>> r=[]
> >>> for mt in Zope.app()._getProductRegistryMetaTypes():
> >>>   if mt['name'] != 'MetaTypeYouWantRemoved':
> >>>     r.append(mt)
> >>> Zope.app()._setProductRegistryMetaTypes(tuple(r))
> >>> get_transaction().commit()
</quote>

This might at least give you an idea where to poke around ;)

Stefan


On Fri, 20 Apr 2001, Chris Shenefiel wrote:

> Stefan,
> 
> Thanks - yes, I did get it installed and working - later, it stopped working
> and seemed corrupted.  I subsequently tried to uninstall it but I cannot since
> there seems to be an orphan ZRFP object in the Zope database.
> 
> Chris
> 
> "Stefan H. Holek" wrote:
> 
> > Chris!
> >
> > Please make sure you follow the RFP installation instructions closely.
> >
> > <quote>
> > In the Zope management interface, navigate to Control_Panel/Products.
> >
> > You will see a ZRFP product; delete it! Zope automatically "installs" an
> > empty and quite useless ZRFP when it notices the lib/python/Products/ZRFP
> > direcory when it starts up. We need to import a "zexp" file with the same
> > id, and Zope won't let us-- you have to delete the empty one first.
> >
> > You can tell it's an "empty" ZRFP if it has nothing but a Help folder in
> > it. Click on it to see what it contains.
> > </quote>
> >
> > HTH,
> > Stefan
> >
> > --On Donnerstag, 19. April 2001 14:27 -0700 Chris Shenefiel
> > <chris.shenefiel@cisco.com> wrote:
> >
> > > I have an object (from the Radio Free Pete package) that appears to be
> > > an orphan.  I have deleted the product, cleaned the database, cleaned
> > > the cache but a reference to RFP still exists.  I know this because when
> > > I try to import the RFP.exp, I get an error stating that that object ID
> > > still exists and cannot be re-installed.
> > >
> > > Is there a way to get rid of this without reinstalling Zope?
> > >
> > > Thanks,
> > > Chris
> >
> > --
> > Things work better when plugged in.
>