Removing option to make tags lowercase

...that's basically handled by the slugification
This commit is contained in:
Christopher Allan Webber 2011-07-30 21:54:18 -05:00
parent 90870c07d4
commit 1b89b817e5
3 changed files with 2 additions and 8 deletions

View File

@ -26,7 +26,6 @@ allow_registration = boolean(default=True)
# tag parsing
tags_delimiter = string(default=",")
tags_case_sensitive = boolean(default=False)
tags_max_length = integer(default=50)
# By default not set, but you might want something like:

View File

@ -9,7 +9,6 @@ db_name = __mediagoblin_tests__
# tag parsing
tags_delimiter = ","
tags_case_sensitive = False
tags_max_length = 50
# Celery shouldn't be set up by the application as it's setup via

View File

@ -405,12 +405,8 @@ def convert_to_tag_list_of_dicts(tag_string):
# Ignore empty or duplicate tags
if tag.strip() and tag.strip() not in [t['name'] for t in taglist]:
if mg_globals.app_config['tags_case_sensitive']:
taglist.append({'name': tag.strip(),
'slug': slugify(tag.strip())})
else:
taglist.append({'name': tag.strip().lower(),
'slug': slugify(tag.strip().lower())})
taglist.append({'name': tag.strip(),
'slug': slugify(tag.strip())})
return taglist