Plugin blacklist

pull/839/head
Piero Toffanin 2020-03-24 13:11:41 -04:00
rodzic 927b7795f3
commit b14209dd88
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -231,6 +231,10 @@ def get_plugins():
manifest_path, min_version, settings.VERSION))
continue
# Skip plugins in blacklist
if plugin.get_name() in settings.PLUGINS_BLACKLIST:
continue
plugins.append(plugin)
except Exception as e:
logger.warning("Failed to instantiate plugin {}: {}".format(dir, e))

Wyświetl plik

@ -70,6 +70,11 @@ PROCESSING_NODES_ONBOARDING = None
# Default CSS to add to theme
DEFAULT_THEME_CSS = ''
# Plugins never to load
PLUGINS_BLACKLIST = [
#'measure',
]
# Application definition
INSTALLED_APPS = [