Example #1
0
    def update_repo_list(self, *args, **kwargs):
        repos_list = self.get_argument('repos_list')

        if repos_list:
            repos_list = repos_list.splitlines()

        try:
            plugins = PluginsHandler()
            plugins.set_plugin_repos(repos_list)
        except Exception as e:
            tornado.log.app_log.exception(
                "Exception in updating repo list - {}".format(str(e)),
                exc_info=True)

        self.get_repo_list()
Example #2
0
def save_plugin_repos_list(repos_list):
    plugins = PluginsHandler()
    return plugins.set_plugin_repos(repos_list)