Пример #1
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)