[Dive4elements-commits] [PATCH] Importer fix issues reported by pylint

Wald Commits scm-commit at wald.intevation.org
Fri Mar 1 13:56:58 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1362142305 -3600
# Node ID 0dae9e77c5da3e5e1c7451b11970154900966c2a
# Parent  074051942f92afcd78c8ad2731c8f35046fad639
Importer fix issues reported by pylint

diff -r 074051942f92 -r 0dae9e77c5da flys-backend/contrib/shpimporter/importer.py
--- 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


More information about the Dive4elements-commits mailing list