<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=533281522-14062011><FONT color=#0000ff 
size=2 face=Arial>Thanks for this ... I'll recode the __init__.py to comply with 
this.&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=533281522-14062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=533281522-14062011><FONT color=#0000ff 
size=2 face=Arial>The stuff about the index.html is on the same wiki page you 
referenced (under documentation).&nbsp; I'll look at filing a feature request 
for that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=533281522-14062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=533281522-14062011><FONT color=#0000ff 
size=2 face=Arial>Cheers</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=533281522-14062011><FONT color=#0000ff 
size=2 face=Arial>Chris</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=533281522-14062011></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>From:</B> Alessandro Pasotti 
[mailto:apasotti@gmail.com] <BR><B>Sent:</B> Wednesday, 15 June 2011 9:30 
a.m.<BR><B>To:</B> Chris Crook<BR><B>Cc:</B> Qgis Developer List; Tim 
Sutton<BR><B>Subject:</B> Re: [Qgis-developer] Preparing for the release 
announcement - plugin manager site<BR></FONT><BR></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=gmail_quote>2011/6/14 Chris Crook <SPAN dir=ltr>&lt;<A 
  href="mailto:ccrook@linz.govt.nz">ccrook@linz.govt.nz</A>&gt;</SPAN><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Hi<BR><BR>The repository looks good, but I couldn't upload 
    the plugin - it failed with the message<BR><BR>&nbsp; &nbsp;"File upload 
    must be a valid QGIS Python plugin compressed archive. Cannot find valid 
    metadata in VectorFieldRenderer/__init__.py"<BR><BR>I suspect that this is 
    because my __init__.py is structured as<BR><BR>&nbsp; from Plugin import 
    Plugin<BR><BR>&nbsp; def name():<BR>&nbsp; &nbsp; &nbsp; return 
    Plugin.LongName<BR><BR>&nbsp; ...<BR><BR>rather than just being specified 
    as<BR><BR>&nbsp; def name():<BR>&nbsp; &nbsp; &nbsp; return 
    "VectorFieldRenderer"<BR><BR></BLOCKQUOTE>
  <DIV><BR></DIV>
  <DIV>Yes, this is probably the reason.</DIV>
  <DIV><BR></DIV>
  <DIV>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.</DIV>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Is there a document which describes how a plugin needs to 
    be coded to be uploadable to the repository?<BR><BR></BLOCKQUOTE>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV>This is one of the docs: <A 
  href="http://www.qgis.org/wiki/Writing_Python_Plugins#__init__.py">http://www.qgis.org/wiki/Writing_Python_Plugins#__init__.py</A></DIV>
  <DIV><BR></DIV>
  <DIV>while developing the new repo, some variations were introduced, like the 
  icon (IIRC this has been discussed on the list).</DIV>
  <DIV><BR></DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>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). &nbsp;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).<BR></BLOCKQUOTE>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV>I can't comment on this, I wasn't aware of this 
functionality.&nbsp;</DIV>
  <DIV>You can file a feature request if you like.</DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote><BR>Also I'm wondering how to specify plugin 
  tags?<BR></BLOCKQUOTE>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV>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.</DIV>
  <DIV><BR></DIV></DIV>
  <DIV><BR></DIV>
  <DIV>Thanks for your feedback.</DIV><BR>-- <BR>Alessandro 
  Pasotti<BR>w3:&nbsp;&nbsp; <A 
href="http://www.itopen.it">www.itopen.it</A><BR></BLOCKQUOTE>
<DIV>
<HR>

<DIV>This message contains information, which is confidential and may be subject 
to legal privilege. <BR>If you are not the intended recipient, you must not 
peruse, use, disseminate, distribute or copy this message.<BR>If you have 
received this message in error, please notify us immediately (Phone 0800 665 463 
or <A href="mailto:info@linz.govt.nz">info@linz.govt.nz</A> ) and destroy the 
original message.</DIV>
<DIV>LINZ accepts no responsibility for changes to this email, or for any 
attachments, after its transmission from LINZ.</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>Thank you.</STRONG> <BR></DIV>
<HR>
</DIV>
</BODY></HTML>