changeset 5160:0dae9e77c5da

Importer fix issues reported by pylint
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 01 Mar 2013 13:51:45 +0100
parents 074051942f92
children a8d8ea1f2a5c
files flys-backend/contrib/shpimporter/importer.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/importer.py	Fri Mar 01 13:33:03 2013 +0100
+++ b/flys-backend/contrib/shpimporter/importer.py	Fri Mar 01 13:51:45 2013 +0100
@@ -30,7 +30,13 @@
         raise NotImplementedError("Importer.getTablename is abstract!")
 
     def getName(self):
-        raise NotImplementedError("Importer.getTablename is abstract!")
+        raise NotImplementedError("Importer.getName is abstract!")
+
+    def isGeometryValid(self, geomType):
+        raise NotImplementedError("Importer.isGeometryValid is abstract!")
+
+    def createNewFeature(self, featureDef, feat, **args):
+        raise NotImplementedError("Importer.createNewFeature is abstract!")
 
     def IsFieldSet(self, feat, name):
         if not name:
@@ -233,7 +239,7 @@
             if self.dry_run:
                 return geomType
             destLayer.CommitTransaction()
-        except e:
+        except:
             logger.error("Exception while committing transaction.")
 
         return geomType

http://dive4elements.wald.intevation.org