# HG changeset patch # User Andre Heinecke # Date 1364227237 -3600 # Node ID db5def5456cebed0c243d84197a27afaaa8819f1 # Parent e88d55d01cf53cc44cb38f13d0bef2df9c2b2e07 Only match strings vor field values diff -r e88d55d01cf5 -r db5def5456ce flys-backend/contrib/shpimporter/importer.py --- a/flys-backend/contrib/shpimporter/importer.py Mon Mar 25 15:46:21 2013 +0100 +++ b/flys-backend/contrib/shpimporter/importer.py Mon Mar 25 17:00:37 2013 +0100 @@ -53,6 +53,8 @@ @returns the name of the field where a match was found or None """ for val in feat.items(): + if not isinstance(feat.items()[val], basestring): + continue match = re.match(regex, feat.items()[val], re.IGNORECASE) if match: return val