def update_repos(self, *args, **kwargs): plugins = PluginsHandler() if plugins.update_plugin_repos(): # Return success self.write(json.dumps({"success": True})) else: # Return failure self.write(json.dumps({"success": False}))
def reload_plugin_repos_data(): """ Reloads all plugin repos data from the configured URL path :return: """ plugins = PluginsHandler() return plugins.update_plugin_repos()
def plugin_repo_update(self): self._log("Checking for updates to plugin repos") plugin_handler = PluginsHandler() plugin_handler.update_plugin_repos()