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? Regards Gaute Amundsen
Gaute Amundsen schrieb:
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?
Regards
Gaute Amundsen
_______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
go to the control panel (portal_controlpannel) in the zmi and delete it robert
On Tue, 2009-12-01 at 14:39 +0100, robert rottermann wrote:
Gaute Amundsen schrieb:
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?
Regards
Gaute Amundsen
go to the control panel (portal_controlpannel) in the zmi and delete it robert
No such thing as portal_controlpannel here. And no check-boxes or "delete" button in /Controll_Panel either. Please try again ;-) Gaute
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gaute Amundsen wrote:
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?
$ bin/zopectl debug ...
import transaction app.Control_Panel.manage_delObjects(['profiler']) # whatever transaction.commit()
or something like that. ;) Nothing like doing open heart surgery on your ZODB to get your pulse pounding. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAksVRCgACgkQ+gerLs4ltQ58OwCfY+a0bH6J311is6R01urytNpU pr4AnRs06/CUtp3/5xaBDnaji8SVWeLE =i1rV -----END PGP SIGNATURE-----
On Tue, 2009-12-01 at 11:28 -0500, Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Gaute Amundsen wrote:
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?
$ bin/zopectl debug ...
import transaction app.Control_Panel.manage_delObjects(['profiler']) # whatever transaction.commit()
or something like that. ;) Nothing like doing open heart surgery on your ZODB to get your pulse pounding.
Tres.
Hehe, precisely :) Gaute
Gaute Amundsen wrote at 2009-12-1 14:33 +0100:
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?
You can delete it in a "bin/zopectl debug" interactive session: app.Control_Panel._delObject('ZopeProfiler') from transaction import commit; commit() You are only prevented to do it from the ZMI because "Control_Panel" does not expose the typical "ObjectManager" API there. -- Dieter
On Tue, 2009-12-01 at 18:15 +0100, Dieter Maurer wrote:
Gaute Amundsen wrote at 2009-12-1 14:33 +0100:
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?
You can delete it in a "bin/zopectl debug" interactive session:
app.Control_Panel._delObject('ZopeProfiler') from transaction import commit; commit()
You are only prevented to do it from the ZMI because "Control_Panel" does not expose the typical "ObjectManager" API there.
Most excellent :) I suspected it had to be something like that, but I had no idea where to begin looking. Tanks Gaute
(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. Regards, Sascha
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
participants (5)
-
Dieter Maurer -
Gaute Amundsen -
robert rottermann -
Sascha Welter -
Tres Seaver