From: Christopher Allan Webber Date: Thu, 14 Nov 2013 19:47:18 +0000 (-0600) Subject: Also switching piwigo integration of submit_media over to kwargs. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8413d8b82e35430c592032bb8bc78277d45bba4;p=mediagoblin.git Also switching piwigo integration of submit_media over to kwargs. This commit sponsored by Roberto Capone. Thanks! --- diff --git a/mediagoblin/plugins/piwigo/views.py b/mediagoblin/plugins/piwigo/views.py index 099a1096..f913a730 100644 --- a/mediagoblin/plugins/piwigo/views.py +++ b/mediagoblin/plugins/piwigo/views.py @@ -130,11 +130,12 @@ def pwg_images_addSimple(request): try: entry = submit_media( - request.app, request.user, - request.files['image'], request.files['image'].filename, - unicode(form.name.data), - unicode(form.comment.data), - upload_limit, max_file_size) + mg_app=request.app, user=request.user, + submitted_file=request.files['image'], + filename=request.files['image'].filename, + title=unicode(form.name.data), + description=unicode(form.comment.data), + upload_limit=upload_limit, max_file_size=max_file_size) collection_id = form.category.data if collection_id > 0: