aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-30 21:54:18 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-30 21:54:18 -0500
commit1b89b817e5bfdc29aa266bdad056252f55e49a00 (patch)
tree7221f31ca38f12c0b71cad75ca3f303176872859
parent90870c07d409b1d6a4c3d16cc17df33b694e2f43 (diff)
downloadmediagoblin-1b89b817e5bfdc29aa266bdad056252f55e49a00.tar.lz
mediagoblin-1b89b817e5bfdc29aa266bdad056252f55e49a00.tar.xz
mediagoblin-1b89b817e5bfdc29aa266bdad056252f55e49a00.zip
Removing option to make tags lowercase
...that's basically handled by the slugification
-rw-r--r--mediagoblin/config_spec.ini1
-rw-r--r--mediagoblin/tests/test_mgoblin_app.ini1
-rw-r--r--mediagoblin/util.py8
3 files changed, 2 insertions, 8 deletions
diff --git a/mediagoblin/config_spec.ini b/mediagoblin/config_spec.ini
index a296f0c1..bbc1f7d6 100644
--- a/mediagoblin/config_spec.ini
+++ b/mediagoblin/config_spec.ini
@@ -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:
diff --git a/mediagoblin/tests/test_mgoblin_app.ini b/mediagoblin/tests/test_mgoblin_app.ini
index 5395ca10..7716e9ca 100644
--- a/mediagoblin/tests/test_mgoblin_app.ini
+++ b/mediagoblin/tests/test_mgoblin_app.ini
@@ -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
diff --git a/mediagoblin/util.py b/mediagoblin/util.py
index bb9f6db4..5880f856 100644
--- a/mediagoblin/util.py
+++ b/mediagoblin/util.py
@@ -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