'Reload a plugin
@param name: the plugin name
@note: this works only within the current thread, other
threads may still be bound to the old version of
the plugin'

@staticmethod
def _reload(name):

    if (name in IGNORE):
        return
    success = True
    appname = current.request.application
    plugin_name = ('applications.%s.modules.%s.%s' % (appname, PLUGINS, name))
    plugin = sys.modules.get(plugin_name)
    if (plugin is not None):
        try:
            reload(plugin)
        except ImportError:
            current.log.error(("Reloading    plugin    '%s'    failed" % name))
            success = False
    return success
