ifplugin["status"] =="newer"andnotplugin["error"]: # ask for confirmation if user downgrades an usable plugin
ifQMessageBox.warning(self, self.tr("QGIS Python Plugin Installer"), self.tr("Are you sure you want to downgrade the plugin to the latest available version? The installed one is newer!"), QMessageBox.Yes, QMessageBox.No) ==QMessageBox.No:
return
ifplugin["status"] =="newer":
ifQMessageBox.warning(self, self.tr("QGIS Python Plugin Installer"), self.tr("Are you sure you want to downgrade the plugin to the latest available version? The installed one is newer!"), QMessageBox.Yes, QMessageBox.No) ==QMessageBox.No:
infoString= (self.tr("Plugin has disappeared"), self.tr("The plugin seems to have been installed but I don't know where. Probably the plugin package contained a wrong named directory.\nPlease search the list of installed plugins. I'm nearly sure you'll find the plugin there, but I just can't determine which of them it is. It also means that I won't be able to determine if this plugin is installed and inform you about available updates. However the plugin may work. Please contact the plugin author and submit this issue."))
infoString= (self.tr("Plugin installed successfully"), self.tr("Python plugin installed.\nYou have to enable it in the Plugin Manager."))
ifplugin["error"] =="incompatible":
message=self.tr("The plugin is designed for a newer version of Quantum GIS. The minimum required version is:")
message+=" <b>"+plugin["error_details"] +"</b>"
elifplugin["error"] =="dependent":
message=self.tr("The plugin depends on some components missing on your system. You need to install the following Python module in order to enable it:")
message+="<b> "+plugin["error_details"] +"</b>"
else:
message=self.tr("The plugin is broken. Python said:")