69 Commits

Author SHA1 Message Date
wonder
50734ac052 Better handling of python path and plugins paths.
Additionally, plugin paths in QGIS_PLUGINPATH can be separated by either semicolon or colon.


git-svn-id: http://svn.osgeo.org/qgis/trunk@13943 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-07-20 13:06:49 +00:00
wonder
9d1d81e18f Better cleanup of resources when unloading plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@13773 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-06-21 22:26:36 +00:00
wonder
d23617474b Fixed unloading of python modules which were imported using "from X import Y,Z".
Modules Y,Z have been missed by the import wrapper and the unloader did not remove the plugin completely/correctly.


git-svn-id: http://svn.osgeo.org/qgis/trunk@13693 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-06-08 20:05:53 +00:00
jef
1541ff5225 update permissions
git-svn-id: http://svn.osgeo.org/qgis/trunk@13463 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-10 18:52:30 +00:00
wonder
610f356975 [FEATURE] support for custom plugin directories using QGIS_PLUGINPATH environment variables.
More paths can be passed, separated by semicolon. Patch from Chris Crook (#2608), slightly modified.


git-svn-id: http://svn.osgeo.org/qgis/trunk@13236 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-04 10:30:40 +00:00
wonder
19b1bc77ac Applied patch from #2582.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13174 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-27 17:52:01 +00:00
borysiasty
e5fb2d37e1 better names for plugin help files: index-ll_CC.html or index-ll.html
git-svn-id: http://svn.osgeo.org/qgis/trunk@13100 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-20 09:50:58 +00:00
borysiasty
515393ea81 new utils.showPluginHelp() method - patch #2562 by ccrook applied
git-svn-id: http://svn.osgeo.org/qgis/trunk@13097 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-20 09:23:38 +00:00
jef
b4f124b181 followup r13013 and implement #2539
git-svn-id: http://svn.osgeo.org/qgis/trunk@13055 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-15 00:40:27 +00:00
borysiasty
c577cfbfa8 [FEATURE] Applied patch #2541 - initial implementing the canBeUninstalled python plugin method
git-svn-id: http://svn.osgeo.org/qgis/trunk@13050 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-12 07:58:48 +00:00
wonder
e4c860e22e Converted Python console from C++ to Python.
This cleans python support a bit and makes a starting point for further improvements of the console.

It's possible to run the console also outside QGIS:

import qgis.console
qgis.console.show_console()



git-svn-id: http://svn.osgeo.org/qgis/trunk@12725 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-10 00:10:23 +00:00
jef
1416065936 fix python plugin detection
git-svn-id: http://svn.osgeo.org/qgis/trunk@12721 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-09 20:50:14 +00:00
wonder
bb5f4139ab Python support: use a wrapper for import statement that tracks modules of plugins.
This enables complete unload and reload of plugins:
- qgis.utils.unloadPlugin(name) - now removes also plugin's modules (files) from python
- qgis.utils.reloadPlugin(name) - unloads and starts the plugin again (using fresh source files)


git-svn-id: http://svn.osgeo.org/qgis/trunk@12690 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-07 14:59:27 +00:00
wonder
4f66673f92 Manage python plugins loaded state in python utils.py module.
This allows seamless loading/unloading of plugins by plugin installer.


git-svn-id: http://svn.osgeo.org/qgis/trunk@12552 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-20 22:12:16 +00:00
borysiasty
5e25228b68 Plugin installer update - rest of the r12476
git-svn-id: http://svn.osgeo.org/qgis/trunk@12487 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-16 00:37:01 +00:00
borysiasty
a13ce52617 Plugin installer update: one-step plugin install and uninstall in QGIS>=1.4
git-svn-id: http://svn.osgeo.org/qgis/trunk@12476 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-15 17:47:00 +00:00
wonder
5de2b259e2 Fixed console display hook (works only for single input)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12125 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-15 17:45:45 +00:00
cfarmer
e4f8eddc43 update to new python utils module to avoid console flush error
git-svn-id: http://svn.osgeo.org/qgis/trunk@11975 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-07 19:20:35 +00:00
wonder
b3c0989385 Moved most of the python support code to a new module qgis.utils
This will enable more flexibility in plugins handling
Hopefully it doesn't break anything :-)


git-svn-id: http://svn.osgeo.org/qgis/trunk@11950 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-07 12:04:42 +00:00