Go to file
Marc Ducobu e602b4c143 Base pour Gaspard 2021-06-17 10:54:41 +02:00
help Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
test Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
.gitignore Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
Makefile Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
README.md Base pour Gaspard 2021-06-17 10:54:41 +02:00
__init__.py Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
docker-compose.yml Base pour Gaspard 2021-06-17 10:54:41 +02:00
icon.png Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
metadata.txt Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
pylintrc Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
resources.qrc Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
web_exporter.py Base pour Gaspard 2021-06-17 10:54:41 +02:00
web_exporter_dialog.py Plugin generated via plugin builder 2021-03-26 13:50:49 +01:00
web_exporter_dialog_base.ui Base pour Gaspard 2021-06-17 10:54:41 +02:00

README.md

How to install the plugin for development ?

  1. Make a symbolic link in the qgis python repository (on linux this reporitoy is ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins ).

$ ln -s $(pwd) ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins

  1. Create the file resources.py

$ pyrcc5 resources.qrc -o resources.py

That's it ! You can restart QGIS and enable the plugin using the plugin manager.

What's Next:

  • Run the tests (make test)

  • Test the plugin by enabling it in the QGIS plugin manager

  • Customize it by editing the implementation file: web_exporter.py

  • Create your own custom icon, replacing the default icon.png

  • Modify your user interface by opening WebExporter_dialog_base.ui in Qt Designer

  • You can use the Makefile to compile your Ui and resource files when you make changes. This requires GNU make (gmake)

Use docker to test the plugin

Docker test images to test connexions.

Start containers:

$ docker-compose up

and connect with

protocol login password address port
ftps username password localhost 4567
sftp foo pass localhost 4522

Be sure all file and dirs in test/mnt are recursively chown with <you_user> and <your_group>