[QGIS Commit] r14129 - docs/trunk/english_us/coding-compilation_guide

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Aug 23 03:53:51 EDT 2010


Author: dassau
Date: 2010-08-23 07:53:51 +0000 (Mon, 23 Aug 2010)
New Revision: 14129

Modified:
   docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex
Log:
update from Benoit de Cabissole

Modified: docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex
===================================================================
--- docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex	2010-08-23 07:40:10 UTC (rev 14128)
+++ docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex	2010-08-23 07:53:51 UTC (rev 14129)
@@ -126,19 +126,19 @@
 
 \begin{verbatim}
 # -*- coding: utf-8 -*-
-from foss4gplugin import FOSS4GPlugin
 def name():
-  return "FOSS4G example"
+    return "FOSS4G example"
 def description():
-  return "A simple example plugin to load shapefiles"
+    return "A simple example plugin to load shapefiles"
 def version():
-  return "0.1"
+    return "0.1"
 def qgisMinimumVersion():
-  return "1.0"
+    return "1.0"
 def authorName():
-  return "John Developer"
+    return "John Developer"
 def classFactory(iface):
-  return FOSS4GPlugin(iface)
+    from foss4gplugin import FOSS4GPlugin
+    return FOSS4GPlugin(iface)
 \end{verbatim}
 
 At this point the plugin already has the neccessary infrastructure to appear in



More information about the QGIS-commit mailing list