RE: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Chris Crook
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:apaso...@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 mailto:ccr...@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 i...@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.
__
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Alessandro Pasotti
2011/6/14 Chris Crook 

> 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
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Borys Jurgiel
> BTW, if nobody starts using the new plugin system we will never switch.

Ok, so let's make some decision :) If we are going to encourage authors to put 
new plugins to the new repo, I should update all old installer versions and 
actually we can move the existing plugins, instead of copying. I can see two 
possibilities only:

1. Make the new repo valid for both qgis 1.x and 2.x. I'll update installers 
in all qgises 1.x, so the authors can put updates to the new repo only and 
don't care about outdated plugins in the old one.

2. Keep the new repo for qgis 2.x only and maintain plugins for qgis 1.x in 
the old repository.

IMHO it doesn't make any sense to mix the two approaches and force authors to 
update their plugins in both repositories.

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


RE: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Chris Crook
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"

Is there a document which describes how a plugin needs to be coded to be 
uploadable to the repository? 

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).

Also I'm wondering how to specify plugin tags?

Thanks
Chris





From: Alessandro Pasotti [mailto:apaso...@gmail.com] 
Sent: Tuesday, 14 June 2011 6:06 p.m.
To: Chris Crook
Cc: Tim Sutton; qgis-developer
    Subject: Re: [Qgis-developer] Preparing for the release announcement - 
plugin manager site


2011/6/13 Chris Crook 


Just wondering how the new plugins repository relates to the 
existing user contributed plugins repo.

Should we move plugins to the new one, and if so should we 
delete them from the existing repository, or is it fine to have two versions of 
the same plugin?




Hi,

please copy or move your plugins to the new site (we are actively 
working on the development of the new site) and file a ticket on 
http://hub.qgis.org/projects/qgis-django/issues if you find any issue.

Please notice that if you are not a staff or "trusted" user your 
plugins will not be immediately published and a notification email will be sent 
to all staff members.

Once a staff member will flag you as "trusted" you will be able to 
publish your plugins.

The new site also supports:

* plugins icons
* tags classification (will be available in QGIS desktop)
* revisions (experimental  and stable)


--
Alessandro Pasotti
w3:   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 i...@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.
__
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Paolo Cavallini
Il 14/06/2011 08:05, Alessandro Pasotti ha scritto:

> please copy or move your plugins to the new site (we are actively working on 
> the
> development of the new site) and file a ticket on
> http://hub.qgis.org/projects/qgis-django/issues if you find any issue.

Shouldn't stop using hub.qgis.org in favour of plugins.qgis.org?
All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Alessandro Pasotti
2011/6/14 Richard Duivenvoorde 

> On 06/14/2011 12:06 PM, Alessandro Pasotti wrote:
> > 2011/6/14 Borys Jurgiel  > >
> >
> > > please copy or move your plugins to the new site (we are actively
> > working
> > > on the development of the new site) and file a ticket on
> > > http://hub.qgis.org/projects/qgis-django/issues if you find any
> issue.
> >
> > Wait wait wait :) In Lisbon we've decided to use the new repository
> > for qgis
> > 2.0 only and to not include the new repository to the installer
> > bundled with
> > 1.7. Are we changing the plans? If so, I can publish the installer
> > update now
> > or later.
> >
> >
> >
> > Correct:  better "copy" than "move" at this stage.
> >
> > BTW, if nobody starts using the new plugin system we will never switch.
>
> Hi Alessandro,
>
> just copied verion 0.5 of my htmlimagemap-plugin into the new repo.
>
> One thing I mention:
>
> After uploading it was not shown in 'My plugins' immediatly, thought
> something went wrong and tried to upload it again. But got the message
> that there was already one ...
> Doing a hard reload in browser (shift f5) shows it now for me..
>

Hi Richard,

we still have a strange cache issue... I'll try to solve it (it should
already be disabled for logged in users but something is not working as
expected).



>
> So waiting for the judges no to approve it :-)
>

You are now "trusted", you should be able to upload new plugins and have
them approved automatically.



> .. while writing, it was approved Whoopie!
>
>
> Regards, and thanks for the hard work you did on the plugin repo!
>


You also helped to make this happen :)


-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Richard Duivenvoorde
On 06/14/2011 12:06 PM, Alessandro Pasotti wrote:
> 2011/6/14 Borys Jurgiel  >
> 
> > please copy or move your plugins to the new site (we are actively
> working
> > on the development of the new site) and file a ticket on
> > http://hub.qgis.org/projects/qgis-django/issues if you find any issue.
> 
> Wait wait wait :) In Lisbon we've decided to use the new repository
> for qgis
> 2.0 only and to not include the new repository to the installer
> bundled with
> 1.7. Are we changing the plans? If so, I can publish the installer
> update now
> or later.
> 
> 
> 
> Correct:  better "copy" than "move" at this stage.
> 
> BTW, if nobody starts using the new plugin system we will never switch.

Hi Alessandro,

just copied verion 0.5 of my htmlimagemap-plugin into the new repo.

One thing I mention:

After uploading it was not shown in 'My plugins' immediatly, thought
something went wrong and tried to upload it again. But got the message
that there was already one ...
Doing a hard reload in browser (shift f5) shows it now for me..

So waiting for the judges no to approve it :-)
.. while writing, it was approved Whoopie!


Regards, and thanks for the hard work you did on the plugin repo!

Richard
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Alessandro Pasotti
2011/6/14 Borys Jurgiel 

> > please copy or move your plugins to the new site (we are actively working
> > on the development of the new site) and file a ticket on
> > http://hub.qgis.org/projects/qgis-django/issues if you find any issue.
>
> Wait wait wait :) In Lisbon we've decided to use the new repository for
> qgis
> 2.0 only and to not include the new repository to the installer bundled
> with
> 1.7. Are we changing the plans? If so, I can publish the installer update
> now
> or later.
>


Correct:  better "copy" than "move" at this stage.

BTW, if nobody starts using the new plugin system we will never switch.


-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Borys Jurgiel
> please copy or move your plugins to the new site (we are actively working
> on the development of the new site) and file a ticket on
> http://hub.qgis.org/projects/qgis-django/issues if you find any issue.

Wait wait wait :) In Lisbon we've decided to use the new repository for qgis 
2.0 only and to not include the new repository to the installer bundled with 
1.7. Are we changing the plans? If so, I can publish the installer update now 
or later. 

Anyway, PLEASE DON'T REMOVE plugins from the old repo in any case! :) Let's 
leave it for older Qgis (and installer) versions.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-13 Thread Alessandro Pasotti
2011/6/13 Chris Crook 

> Just wondering how the new plugins repository relates to the existing user
> contributed plugins repo.
>
> Should we move plugins to the new one, and if so should we delete them from
> the existing repository, or is it fine to have two versions of the same
> plugin?
>


Hi,

please copy or move your plugins to the new site (we are actively working on
the development of the new site) and file a ticket on
http://hub.qgis.org/projects/qgis-django/issues if you find any issue.

Please notice that if you are not a staff or "trusted" user your plugins
will not be immediately published and a notification email will be sent to
all staff members.

Once a staff member will flag you as "trusted" you will be able to publish
your plugins.

The new site also supports:

* plugins icons
* tags classification (will be available in QGIS desktop)
* revisions (experimental  and stable)


--
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-13 Thread Alex Mandel
Yes, please move your plugin over.
No need to delete it off the current site, at least not at this time.
Eventually that site will get turned off once the all the plugins are
moved and QGIS ships with the correct url to the new site.

Thanks,
Alex

On 06/13/2011 10:57 AM, Chris Crook wrote:
> Just wondering how the new plugins repository relates to the existing user 
> contributed plugins repo.
> 
> Should we move plugins to the new one, and if so should we delete them from 
> the existing repository, or is it fine to have two versions of the same 
> plugin?
> 
> Cheers
> Chris
> 
> ___
> From: Tim Sutton [li...@linfiniti.com]
> Sent: 13 June 2011 09:23
> To: qgis-developer
> Subject: [Qgis-developer] Preparing for the release announcement
> 
> Hi All
> 
> - Alessandro's new plugin manager site http://plugins.qgis.org
> 
> If you have time, could you take a moment to test these sites by:
> 
> - Upload any plugins you want to share to the http://plugins.qgis.org
> __
> 
> 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 i...@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.
> __
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


RE: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-13 Thread Chris Crook
Just wondering how the new plugins repository relates to the existing user 
contributed plugins repo.

Should we move plugins to the new one, and if so should we delete them from the 
existing repository, or is it fine to have two versions of the same plugin?

Cheers
Chris

___
From: Tim Sutton [li...@linfiniti.com]
Sent: 13 June 2011 09:23
To: qgis-developer
Subject: [Qgis-developer] Preparing for the release announcement

Hi All

- Alessandro's new plugin manager site http://plugins.qgis.org

If you have time, could you take a moment to test these sites by:

- Upload any plugins you want to share to the http://plugins.qgis.org
__

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 i...@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.
__
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer