aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-11-14 13:47:18 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-11-14 13:47:18 -0600
commita8413d8b82e35430c592032bb8bc78277d45bba4 (patch)
tree41f8cc35cb6e95943fb2bc047cd0a2e78af41b24
parent70b2f1ec0cc2f5174178a57c815d8fab9e12d64b (diff)
downloadmediagoblin-a8413d8b82e35430c592032bb8bc78277d45bba4.tar.lz
mediagoblin-a8413d8b82e35430c592032bb8bc78277d45bba4.tar.xz
mediagoblin-a8413d8b82e35430c592032bb8bc78277d45bba4.zip
Also switching piwigo integration of submit_media over to kwargs.
This commit sponsored by Roberto Capone. Thanks!
-rw-r--r--mediagoblin/plugins/piwigo/views.py11
1 files 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: