aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/views.py
diff options
context:
space:
mode:
authorCaleb Forbes Davis V <caldavis@gmail.com>2011-07-12 22:26:10 -0500
committerCaleb Forbes Davis V <caldavis@gmail.com>2011-07-12 22:43:26 -0500
commit6f2e4585cc7475362205a9ddb0e69d6da2b6dc85 (patch)
tree17bef36aa8a5ee3d15785495884fb3768ded52e0 /mediagoblin/submit/views.py
parent93e3468a2af92a623a659628a20605025cea9ca7 (diff)
downloadmediagoblin-6f2e4585cc7475362205a9ddb0e69d6da2b6dc85.tar.lz
mediagoblin-6f2e4585cc7475362205a9ddb0e69d6da2b6dc85.tar.xz
mediagoblin-6f2e4585cc7475362205a9ddb0e69d6da2b6dc85.zip
uses standard functions instead of form filters and fixes taglist default
- seems simpler to use the same tag field processing procedures on media submit and edit, so now processing with a regular function instead of a form filter. Filters run on form load and post by default. - moved tags to sidebar - taglist defaults to [] instead of None - adds case sensitivity toggle
Diffstat (limited to 'mediagoblin/submit/views.py')
-rw-r--r--mediagoblin/submit/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index cdd58786..46ec4cea 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -21,7 +21,8 @@ from string import split
from werkzeug.utils import secure_filename
from mediagoblin.util import (
- render_to_response, redirect, cleaned_markdown_conversion)
+ render_to_response, redirect, cleaned_markdown_conversion, \
+ convert_to_tag_list)
from mediagoblin.decorators import require_active_login
from mediagoblin.submit import forms as submit_forms, security
from mediagoblin.process_media import process_media_initial
@@ -59,7 +60,7 @@ def submit_start(request):
entry['media_type'] = u'image' # heh
entry['uploader'] = request.user['_id']
- entry['tags'] = split(request.POST.get('tags'))
+ entry['tags'] = convert_to_tag_list(request.POST.get('tags'))
# Save, just so we can get the entry id for the sake of using
# it to generate the file path