[Zope] ZopeProfiler uninstall

Gaute Amundsen gaute at div.org
Tue Dec 1 15:33:32 EST 2009


On Tue, 2009-12-01 at 20:57 +0100, Sascha Welter wrote:
> (Tue, Dec 01, 2009 at 02:33:04PM +0100) Gaute Amundsen wrote/schrieb/egrapse:
> > We have ZopeProfiler 1.72 installed on a site (Zope 2.7.5-1.fc3) that
> > don't need it anymore.
> > I've removed the folder and deleted the product, but I cant' find a way
> > to remove it form the controlpanel.
> > I notice it's been asked once before, but I cant find any replies.
> > 
> > Any hints?
> 
> http://www.peterbe.com/uninstall-LeakFinder
> https://mail.zope.org/pipermail/zope-dev/2001-August/012742.html
> 
> Same procedure applies to ZopeProfiler too, IIRC.

That one looks dangerous!

> cp = self.Control_Panel
>     try: del cp.LeakFinder
>     except:
>         LOG('Fixup',ERROR,'Exception Occurred:',error=sys.exc_info())
>     try:
>         del cp._objects # !!!
>     except:
>         LOG('Fixup',ERROR,'Exception Occurred:',error=sys.exc_info())

I have not consulted the source here, but would not that second try wipe out everything in cp?

I think I'll go for the open heart surgery :)

Gaute




More information about the Zope mailing list