[Qgis-developer] qgis-1.5.0_coding-compilation_guide_en.pdf

Benoit de Cabissole benoit at exigesa.com
Sun Aug 22 10:02:52 EDT 2010


And while I'm at it, on page 31, the 'else:' statement in the top code block
is wrongly indented!

Sorry to be a pain,
Benoit

> -----Original Message-----
> From: qgis-developer-bounces at lists.osgeo.org
> [mailto:qgis-developer-bounces at lists.osgeo.org]On Behalf Of Benoit de
> Cabissole
> Sent: Sunday, 22 August 2010 15:46
> To: qgis-developer at lists.osgeo.org
> Subject: [Qgis-developer] qgis-1.5.0_coding-compilation_guide_en.pdf
>
>
> Hello Manual Team,
>
> With reference to the subject and to recent discussions in this forum
> regarding plugins coding standard:
> - on page 29, the __init__.py example (at the bottom of the page) could be
> rewritten as:
>
> # -*- coding: utf-8 -*-
> def name():
>     return "FOSS4G example"
> def description():
>     return "A simple example plugin to load shapefiles"
> def version():
>     return "0.1"
> def qgisMinimumVersion():
>     return "1.0"
> def authorName():
>     return "John Developer"
> def classFactory(iface):
>     from foss4gplugin import FOSS4GPlugin
>     return FOSS4GPlugin(iface)
>
> Where the import line is put inside the classFactory() function and not in
> the first line of the file.
>
> Just trying my two bits for consistency...
>
> Cheers and keep the good work,
> Benoit
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list