def download_plugins_thread(self): """ Downloads some plugins """ for p in self.plug: plugin_manager.download_plugin(p[5]) plugin_manager.update_local_plugin_descriptor((p, )) self.emit(SIGNAL("plugin_downloaded(PyQt_PyObject)"), p)
def update_plugin_thread(self): """ Updates some plugins """ for p in self.plug: plugin_manager.uninstall_plugin(p) plugin_manager.download_plugin(p[5]) plugin_manager.update_local_plugin_descriptor([p]) self._manager.reset_installed_plugins()
def download_plugins_thread(self): """ Downloads some plugins """ for p in self.plug: try: name = plugin_manager.download_plugin(p[5]) p.append(name) plugin_manager.update_local_plugin_descriptor((p, )) self.emit(SIGNAL("plugin_downloaded(PyQt_PyObject)"), p) except Exception, e: logger.warning("Impossible to install (%s): %s", p[0], e)
def update_plugin_thread(self): """ Updates some plugins """ for p in self.plug: try: plugin_manager.uninstall_plugin(p) name = plugin_manager.download_plugin(p[5]) p.append(name) plugin_manager.update_local_plugin_descriptor([p]) self._manager.reset_installed_plugins() except Exception as e: logger.warning("Impossible to update (%s): %s", p[0], e)
def download_plugins_thread(self): """ Downloads some plugins """ for p in self.plug: try: name = plugin_manager.download_plugin(p[5]) p.append(name) plugin_manager.update_local_plugin_descriptor((p, )) req_command = plugin_manager.has_dependencies(p) if req_command[0]: self._manager._requirements[p[0]] = req_command[1] self.emit(SIGNAL("plugin_downloaded(PyQt_PyObject)"), p) except Exception as e: logger.warning("Impossible to install (%s): %s", p[0], e)
def manual_install_plugins_thread(self): """ Install a plugin from the a file. """ for p in self.plug: try: name = plugin_manager.manual_install(p[5]) p.append(name) plugin_manager.update_local_plugin_descriptor((p, )) req_command = plugin_manager.has_dependencies(p) if req_command[0]: self._manager._requirements[p[0]] = req_command[1] self.plugin_manually_installed.emit(p) except Exception as e: logger.warning("Impossible to install (%s): %s", p[0], e)