Removing option to make tags lowercase
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 31 Jul 2011 02:54:18 +0000 (21:54 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 31 Jul 2011 02:54:18 +0000 (21:54 -0500)
...that's basically handled by the slugification

mediagoblin/config_spec.ini
mediagoblin/tests/test_mgoblin_app.ini
mediagoblin/util.py

index a296f0c193b15feb50175b470c0b7403d32b703b..bbc1f7d62545a292112fcf3487181a8d6002d24b 100644 (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:
index 5395ca1020b80711006d1c20b8b928a6b092292b..7716e9ca244f3ce034bdd6be72d0419f4260ce6d 100644 (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
index bb9f6db4838e065b5516c6f68bb840d9e5d20902..5880f85665b9f81e96d0ddfe8dc071b3d08bdedd 100644 (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