[Qgis-developer] Preparing for the release announcement -
plugin manager site
Chris Crook
ccrook at linz.govt.nz
Tue Jun 14 19:08:15 EDT 2011
Thanks for this ... I'll recode the __init__.py to comply with this.
The stuff about the index.html is on the same wiki page you referenced (under documentation). I'll look at filing a feature request for that.
Cheers
Chris
________________________________
From: Alessandro Pasotti [mailto:apasotti at gmail.com]
Sent: Wednesday, 15 June 2011 9:30 a.m.
To: Chris Crook
Cc: Qgis Developer List; Tim Sutton
Subject: Re: [Qgis-developer] Preparing for the release announcement - plugin manager site
2011/6/14 Chris Crook <ccrook at linz.govt.nz<mailto:ccrook at linz.govt.nz>>
Hi
The repository looks good, but I couldn't upload the plugin - it failed with the message
"File upload must be a valid QGIS Python plugin compressed archive. Cannot find valid metadata in VectorFieldRenderer/__init__.py"
I suspect that this is because my __init__.py is structured as
from Plugin import Plugin
def name():
return Plugin.LongName
...
rather than just being specified as
def name():
return "VectorFieldRenderer"
Yes, this is probably the reason.
For security reasons there is no "eval" on the python code, a simple regexp is used instead to extract the strings from the __init__ file.
Is there a document which describes how a plugin needs to be coded to be uploadable to the repository?
This is one of the docs: http://www.qgis.org/wiki/Writing_Python_Plugins#__init__.py
while developing the new repo, some variations were introduced, like the icon (IIRC this has been discussed on the list).
Also some while ago I proposed a convention of putting plugin documentation in an index.html file in the plugin directory (which is now supported by the showPluginHelp function in utils.py). I wonder if it would be good provide access to this from the plugin repository (ie make it available for viewing if it is included in the zip file).
I can't comment on this, I wasn't aware of this functionality.
You can file a feature request if you like.
Also I'm wondering how to specify plugin tags?
Tags were introduced in Lisbon, at this time, they are only editable through the plugin web interface, there is currently no way to put them in the __init__ and have them automatically imported in the repo.
Thanks for your feedback.
--
Alessandro Pasotti
w3: www.itopen.it<http://www.itopen.it>
______________________________________________________________________________________________________
This message contains information, which is confidential and may be subject to legal privilege.
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.
Thank you.
______________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110615/3b268a02/attachment.html
More information about the Qgis-developer
mailing list