Also switching piwigo integration of submit_media over to kwargs.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Nov 2013 19:47:18 +0000 (13:47 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Nov 2013 19:47:18 +0000 (13:47 -0600)
This commit sponsored by Roberto Capone.  Thanks!

mediagoblin/plugins/piwigo/views.py

index 099a1096a98a32bf259bdc9261f5dcf36e1c48ae..f913a730c88d11b015bd0f8826b4bcdfb7809f9b 100644 (file)
@@ -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: