qgis / QGIS-Django

Django project for QGIS related activities such as plugin repository
http://qgis.org
GNU General Public License v2.0
91 stars 61 forks source link

Be more explicit about "Server" checkbox in the plugin settings #487

Open Gustry opened 4 days ago

Gustry commented 4 days ago

Given the page https://plugins.qgis.org/plugins/server/

image

I went to check a few plugins to look at their __init__.py file :

They only define a classFactory, while a QGIS server plugin must define serverClassFactory, see the docs

My guess, it's that when they upload a new plugin, they don't know much about this checkbox : https://plugins.qgis.org/plugins/gazetteer_creator/update/

image

Maybe a string or tooltip adding some information would be welcome.

A server plugin is a plugin which can run on QGIS Server, by having a entrypoint serverClassFactory, see the documentation.

I'm not sure if it's quick to add a check when a version is uploaded.

Gustry commented 4 days ago

I manually cleaned the list by editing the plugin settings.

Xpirix commented 1 day ago

Hi @Gustry

Please find the proposed fix at #490. About the check, do you mean a blocking error that arises whenever the server attribute is set to True in the metadata, but the entry point serverClassFactory doesn't exist in init.py file? If so, I think it would change the workflow of the plugin. Perhaps we should let others know before. What do you think?