changeset 8611:e331a5ad2554

(issue1799) Strip whitespace from river names
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 24 Mar 2015 11:57:23 +0100
parents 1f6b30310360
children b5854a9b101c
files backend/contrib/shpimporter/shpimporter.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/contrib/shpimporter/shpimporter.py	Tue Mar 24 11:08:39 2015 +0100
+++ b/backend/contrib/shpimporter/shpimporter.py	Tue Mar 24 11:57:23 2015 +0100
@@ -199,7 +199,7 @@
             river_name = utils.getUTF8Path(
                     os.path.basename(os.path.normpath(directory)))
         else:
-            river_name = config.river_name
+            river_name = config.river_name.strip()
         river_id = utils.getRiverId(dbconn_raw, river_name, oracle)
 
         if not river_id:

http://dive4elements.wald.intevation.org