[Zope] How to uninstall Callprofiler
Nguyen Quan Son
sonnq at tinhvan.com
Wed Dec 17 21:20:42 EST 2003
I forgot to delete the object 'CallProfiler'
Use this code instead:
id = 'CallProfiler'
import Zope
app = Zope.app()
cp = app.Control_Panel
for i in range(len(cp._objects)):
obj = cp._objects[i]
if obj['id'] == id:
cp._objects = cp._objects[:i] + cp._objects[i+1:]
delattr(cp, id)
get_transaction().commit()
----- Original Message -----
From: "Nguyen Quan Son" <sonnq at tinhvan.com>
To: "Jean Baltus" <jean.baltus at africamuseum.be>; <zope at zope.org>
Sent: Thursday, December 18, 2003 8:50 AM
Subject: Re: [Zope] How to uninstall Callprofiler
> Try this:
>
> import Zope
> app = Zope.app()
> delattr(app.Control_Panel, 'CallProfiler')
> get_transaction().commit()
>
> Nguyen Quan Son
>
>
> ----- Original Message -----
> From: Jean Baltus
> To: zope at zope.org
> Sent: Wednesday, December 17, 2003 3:57 PM
> Subject: [Zope] How to uninstall Callprofiler
>
>
> Hi all,
>
> How can I uninstall CallProfiler.? If I just remove the directory in Products, I still have a broken object in the Control Panel
> that I can't remove.
>
> Regards,
>
> -- Jean
>
More information about the Zope
mailing list