enforces maximum tag length with (in)appropriate messaging

This commit is contained in:
Caleb Forbes Davis V
2011-07-12 23:58:25 -05:00
parent 4451219560
commit cc7ff3c505
3 changed files with 29 additions and 5 deletions

View File

@@ -60,7 +60,9 @@ def submit_start(request):
entry['media_type'] = u'image' # heh
entry['uploader'] = request.user['_id']
entry['tags'] = convert_to_tag_list(request.POST.get('tags'))
# Process the user's folksonomy "tags"
entry['tags'] = convert_to_tag_list(request)
# Save, just so we can get the entry id for the sake of using
# it to generate the file path