'Finds and load all the plugins that are
available in the plugin_repo_path.'

def _loadPlugins(self, plugin_repo_path):

    try:
        os.stat(plugin_repo_path)
    except OSError:
        pass
    sys.path.append(plugin_repo_path)
    dir_name_regexp = re.compile('^[\\d\\w\\-\\_]+$')
    for name in os.listdir(plugin_repo_path):
        if dir_name_regexp.match(name):
            try:
                module_path = os.path.join(plugin_repo_path, name)
                sys.path.append(module_path)
                module_filename = os.path.join(module_path, 'plugin.py')
                self._plugin_modules[name] = imp.load_source(name, module_filename)
            except Exception as e:
                msg = ('An    error    ocurred    while    loading    plugin    %s.\n%s' % (module_filename, traceback.format_exc()))
                getLogger(self).debug(msg)
                getLogger(self).warn(e)
        else:
            pass
