From a8413d8b82e35430c592032bb8bc78277d45bba4 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 14 Nov 2013 13:47:18 -0600 Subject: [PATCH] Also switching piwigo integration of submit_media over to kwargs. This commit sponsored by Roberto Capone. Thanks! --- mediagoblin/plugins/piwigo/views.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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: -- 2.25.1