Esempio n. 1
0
    def get_plugins(self, ptype):
        """ the return value is dict of name:class pairs """

        # good place to load all the plugins
        self._load_all()

        return pluginbase.get_plugins(ptype)
Esempio n. 2
0
    def get_plugins(self, ptype):
        """ the return value is dict of name:class pairs """

        # good place to load all the plugins
        self._load_all()

        return pluginbase.get_plugins(ptype)
Esempio n. 3
0
File: plugin.py Progetto: csdb/mic
    def get_plugins(self, ptype):
        """ the return value is dict of name:class pairs """

        if ptype not in PLUGIN_TYPES:
            raise errors.CreatorError('%s is not valid plugin type' % ptype)

        self._add_plugindir(os.path.join(DEFAULT_PLUGIN_LOCATION, ptype))
        self._load_all()

        return pluginbase.get_plugins(ptype)
Esempio n. 4
0
    def get_plugins(self, ptype):
        """ the return value is dict of name:class pairs """

        if ptype not in PLUGIN_TYPES:
            raise errors.CreatorError('%s is not valid plugin type' % ptype)

        self._add_plugindir(os.path.join(DEFAULT_PLUGIN_LOCATION, ptype))
        self._load_all()

        return pluginbase.get_plugins(ptype)