[QGIS Commit] [qgis/Quantum-GIS] be9bde: [FEATURE] Allow plugin
metadata to be in metadata....
noreply at github.com
noreply at github.com
Wed Nov 9 13:58:10 EST 2011
Branch: refs/heads/master
Home: https://github.com/qgis/Quantum-GIS
Commit: be9bdeb5bba3b2b40219e8df2ae9d1e94299701a
https://github.com/qgis/Quantum-GIS/commit/be9bdeb5bba3b2b40219e8df2ae9d1e94299701a
Author: Martin Dobias <wonder.sk at gmail.com>
Date: 2011-11-09 (Wed, 09 Nov 2011)
Changed paths:
M python/utils.py
Log Message:
-----------
[FEATURE] Allow plugin metadata to be in metadata.txt
Until now plugins' metadata were always retrieved from __init__.py by calling python methods.
Reading metadata from a text file has the advantage of not requiring to load the plugin code
and can be done by plugin repository.
Metadata in metadata.txt is preferred to the methods in __init__.py - if the text file is
present, it is used to fetch the values. From QGIS 2.0 the metadata from __init__.py
will not be accepted - the metadata.txt file will be required.
Plugin metadata should be in INI file format, recognized by python's ConfigParser module
and by Qt's QSettings class.
All currently used metadata should be in [general] section. Example use:
[general]
name=PostGIS manager
description=Manage your PostGIS database
version=Version 0.5.15
icon=icons/postgis_elephant.png
qgisMinimumVersion=1.0.0
More information about the QGIS-commit
mailing list