Re: [Zope] How to uninstall Callprofiler
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@tinhvan.com> To: "Jean Baltus" <jean.baltus@africamuseum.be>; <zope@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@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
participants (1)
-
Nguyen Quan Son