Mercurial > dive4elements > river
diff flys-backend/contrib/shpimporter/importer.py @ 5160:0dae9e77c5da
Importer fix issues reported by pylint
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 01 Mar 2013 13:51:45 +0100 |
parents | c5187ab9f571 |
children | b3a15fa3d88e |
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