From 17493366332e74a542a48a66c953e27f99cb07ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Dinuncio?= Date: Thu, 27 Mar 2014 16:22:11 -0430 Subject: [PATCH] Update controlpanel.rst --- source/functionality/controlpanel.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/functionality/controlpanel.rst b/source/functionality/controlpanel.rst index 35cfce74..7b617dfb 100644 --- a/source/functionality/controlpanel.rst +++ b/source/functionality/controlpanel.rst @@ -299,3 +299,16 @@ buildout you can use operating system environment variables. For example, see: * http://pypi.python.org/pypi/Products.LongRequestLogger + + +Remove a Configlet from Control Panel +===================================== + +To remove a configlet from the control panel, you should add +an upgrade step that invoke a code like the following:: + + def remove_configlet(): + from plone import api + config_tool = api.portal.get_tool('portal_controlpanel') + configlet_id = 'MyConfigletId' + config_tool.unregisterConfiglet(configlet_id)