Switching use of submit_media to be keyword arguments in views.py.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Nov 2013 19:41:09 +0000 (13:41 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Nov 2013 19:41:09 +0000 (13:41 -0600)
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

index e2c78638a9e16335506c6aa76c34effde589b74a..fb0a78777fb4c16e235c2acb38cc92df5c85d082 100644 (file)
@@ -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!'))