[QGIS-trac] [Quantum GIS] #2541: Add canUninstall function to
python plugin modules
Quantum GIS
qgis at qgis.org
Wed Mar 10 22:14:36 EST 2010
#2541: Add canUninstall function to python plugin modules
-------------------------------------------+--------------------------------
Reporter: ccrook | Owner: borysiasty
Type: bug | Status: new
Priority: minor: annoyance | Milestone: Version 1.5.0
Component: Python plugins and bindings | Version: HEAD
Keywords: | Platform_version: 1.5
Platform: All | Must_fix: No
Status_info: 0 |
-------------------------------------------+--------------------------------
Some modules need to manage behaviour when they are uninstalled (as
opposed to just unloaded when qgis closes down). For example layer or
renderer plugins may need to remove layers, reset renderers, or at least
explain to users that projects made using them may no longer load.
This patch adds a canUninstall function to the plugin interface. If this
is absent, or if it returns True, then the plugin will be uninstalled. If
it returns false, then the plugin manager will not uninstall the plugin.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2541>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list