From 70b2f1ec0cc2f5174178a57c815d8fab9e12d64b Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 14 Nov 2013 13:41:09 -0600 Subject: [PATCH] Switching use of submit_media to be keyword arguments in views.py. This should make things a bit easier for me to fiddle with argument ordering. This commit sponsored by Maira Sutton. Thanks! --- mediagoblin/submit/views.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index e2c78638..fb0a7877 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -56,13 +56,14 @@ def submit_start(request): else: try: submit_media( - request.app, request.user, - request.files['file'], request.files['file'].filename, - unicode(submit_form.title.data), - unicode(submit_form.description.data), - unicode(submit_form.license.data) or None, - submit_form.tags.data, - upload_limit, max_file_size) + mg_app=request.app, user=request.user, + submitted_file=request.files['file'], + filename=request.files['file'].filename, + title=unicode(submit_form.title.data), + description=unicode(submit_form.description.data), + license=unicode(submit_form.license.data) or None, + tags_string=submit_form.tags.data, + upload_limit=upload_limit, max_file_size=max_file_size) add_message(request, SUCCESS, _('Woohoo! Submitted!')) -- 2.25.1