'Register and initialize all built-in plugins.
Optionally, the list of plugins loaded may be limited to those
contained in :attr:`plugin_whitelist`.
Plugin configurations stored in :attr:`plugin_config` will be used.'

def register_plugins(self):

    if self.plugin_whitelist:
        plugin_list = self.plugin_whitelist
    else:
        plugin_list = plugins.__all__
    for plugin in plugin_list:
        if (plugin in plugins.__all__):
            self.register_plugin(plugin)
        else:
            raise NameError((u'Plugin    %s    not    in    plugins.__all__.' % plugin))
