Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Gaute Amundsen
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


___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Gaute Amundsen
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

___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Gaute Amundsen
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



___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Sascha Welter
(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

___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Dieter Maurer
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
___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Tres Seaver
-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  tsea...@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-

___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Gaute Amundsen
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




___
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 )


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread robert rottermann
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
___
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 )


[Zope] ZopeProfiler uninstall

2009-12-01 Thread Gaute Amundsen
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 )