A couple more adjustments for unicode'ification of some arguments.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Nov 2013 16:01:41 +0000 (10:01 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Nov 2013 16:01:41 +0000 (10:01 -0600)
This commit sponsored by Bruno Girin.  Thank you!

mediagoblin/submit/lib.py

index 848dd35cb19b469109d03c868c62e7983d7c1c9a..1314df1ebdec142e2d7417f7531c62efafee85af 100644 (file)
@@ -120,9 +120,9 @@ def submit_media(mg_app, user, submitted_file, filename,
     # create entry and save in database
     entry = new_upload_entry(user)
     entry.media_type = media_type
-    entry.title = (title or splitext(filename)[0])
+    entry.title = (title or unicode(splitext(filename)[0]))
 
-    entry.description = description or ""
+    entry.description = description or u""
 
     entry.license = license or None