예제 #1
0
파일: manager.py 프로젝트: anbangr/fuel-web
    def sync_plugins_metadata(cls, plugin_ids=None):
        """Sync metadata for plugins by given ids. If there is not
        ids all newest plugins will be synced
        """
        if plugin_ids:
            plugins = PluginCollection.get_by_uids(plugin_ids)
        else:
            plugins = PluginCollection.all()

        for plugin in plugins:
            plugin_adapter = wrap_plugin(plugin)
            plugin_adapter.sync_metadata_to_db()
예제 #2
0
파일: manager.py 프로젝트: nebril/fuel-web
    def sync_plugins_metadata(cls, plugin_ids=None):
        """Sync metadata for plugins by given ids. If there is not
        ids all newest plugins will be synced
        """
        if plugin_ids:
            plugins = PluginCollection.get_by_uids(plugin_ids)
        else:
            plugins = PluginCollection.all_newest()

        for plugin in plugins:
            plugin_wrapper = wrap_plugin(plugin)
            plugin_wrapper.sync_metadata_to_db()
예제 #3
0
    def sync_plugins_metadata(cls, plugin_ids=None):
        """Sync or install metadata for plugins by given IDs.

        If there are no IDs, all plugins will be synced.

        :param plugin_ids: list of plugin IDs
        :type plugin_ids: list
        """
        if plugin_ids:
            for plugin in PluginCollection.get_by_uids(plugin_ids):
                cls._plugin_update(plugin)
        else:
            cls._install_or_update_or_delete_plugins()
예제 #4
0
    def sync_plugins_metadata(cls, plugin_ids=None):
        """Sync or install metadata for plugins by given IDs.

        If there are no IDs, all plugins will be synced.

        :param plugin_ids: list of plugin IDs
        :type plugin_ids: list
        """
        if plugin_ids:
            for plugin in PluginCollection.get_by_uids(plugin_ids):
                cls._plugin_update(plugin)
        else:
            cls._install_or_update_or_delete_plugins()
예제 #5
0
    def sync_plugins_metadata(cls, plugin_ids=None):
        """Sync metadata for plugins by given IDs.

        If there are no IDs, all newest plugins will be synced.

        :param plugin_ids: list of plugin IDs
        :type plugin_ids: list
        """
        if plugin_ids:
            plugins = PluginCollection.get_by_uids(plugin_ids)
        else:
            plugins = PluginCollection.all()

        for plugin in plugins:
            plugin_adapter = wrap_plugin(plugin)
            plugin_adapter.sync_metadata_to_db()
예제 #6
0
파일: manager.py 프로젝트: mba811/fuel-web
    def sync_plugins_metadata(cls, plugin_ids=None):
        """Sync metadata for plugins by given IDs.

        If there are no IDs, all newest plugins will be synced.

        :param plugin_ids: list of plugin IDs
        :type plugin_ids: list
        """
        if plugin_ids:
            plugins = PluginCollection.get_by_uids(plugin_ids)
        else:
            plugins = PluginCollection.all()

        for plugin in plugins:
            plugin_adapter = wrap_plugin(plugin)
            plugin_adapter.sync_metadata_to_db()