Skip to content
Snippets Groups Projects
Commit 10283bb2 authored by anonymous's avatar anonymous
Browse files

Add encoding info

parent 09007b08
No related branches found
No related tags found
No related merge requests found
# This Python file uses the following encoding: utf-8
import csv import csv
import re import re
import urllib2 import urllib2
...@@ -178,7 +179,7 @@ def known_spatial_uri(key, data, errors, context): ...@@ -178,7 +179,7 @@ def known_spatial_uri(key, data, errors, context):
data[('extras', new_index+1, 'value')] = spatial data[('extras', new_index+1, 'value')] = spatial
def tag_name_validator(value, context): def tag_name_validator(value, context):
tagname_match = re.compile('[\w \-.\:\(\)äöüÄÖÜß\'\`]*$', re.UNICODE) tagname_match = re.compile('[\w \-.\:\(\)äöüÄÖÜß\´\`]*$', re.UNICODE)
if not tagname_match.match(value): if not tagname_match.match(value):
raise toolkit.Invalid(_('Tag "%s" must be alphanumeric ' raise toolkit.Invalid(_('Tag "%s" must be alphanumeric '
'characters or symbols: -_.:()') % (value)) 'characters or symbols: -_.:()') % (value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment