jan: thuban/Extensions/gns2shp __init__.py,1.2,1.3
cvs@intevation.de
cvs at intevation.de
Thu Mar 10 23:51:05 CET 2005
Author: jan
Update of /thubanrepository/thuban/Extensions/gns2shp
In directory doto:/tmp/cvs-serv3525
Modified Files:
__init__.py
Log Message:
Added init method for Extension description.
(init): New. Contains the initialization of the module.
Index: __init__.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/gns2shp/__init__.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- __init__.py 16 Nov 2004 21:15:49 -0000 1.2
+++ __init__.py 10 Mar 2005 22:51:03 -0000 1.3
@@ -1,17 +1,19 @@
-# Copyright (c) 2003, 2004 by Intevation GmbH
+# Copyright (c) 2003-2005 by Intevation GmbH
# Authors:
-# Jan-Oliver Wagner <jan at intevation.de> (2003, 2004)
+# Jan-Oliver Wagner <jan at intevation.de> (2003-2005)
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with Thuban for details.
-# import the actual module
-import gns2shp
-
# perform the registration of the extension
from Thuban import _
from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry
+def init():
+ """Initialize gns2shp extension module."""
+ import gns2shp
+ return None
+
ext_registry.add(ExtensionDesc(
name = 'gns2shp',
version = '1.0.0',
@@ -19,4 +21,5 @@
copyright = '2003, 2004 Intevation GmbH',
desc = _("Converts GNS (Geographical Name Service\n" \
"of NIMA) to Shapefile format and\n" \
- "displays the data.")))
+ "displays the data."),
+ init_callback = init))
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)