'Enable all registered plugins.
:param list names: A list of plugin names to enable. If
none are provided, all registered plugins
will be enabled.
:param dict config: A dictionary mapping plugin names to
configuration dictionaries, as used by
:meth:`~PluginManager.enable`.'

def enable_all(self, names=None, config=None):

    names = (names if names else PLUGIN_REGISTRY.keys())
    if (config is None):
        config = {}
    for name in names:
        self.enable(name, config.get(name, {}))
