From: Bryan Date: Tue, 14 Jan 2014 09:06:10 +0000 (-0500) Subject: getting some mixed codecs, passthrough filters to clean up maybe X-Git-Tag: release-20150131~240^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=edc2357a675167171dce39149f8ef751dd767ff0;p=oweals%2Fkarmaworld.git getting some mixed codecs, passthrough filters to clean up maybe --- diff --git a/karmaworld/apps/notes/management/commands/populate_s3.py b/karmaworld/apps/notes/management/commands/populate_s3.py index f39b9ff..632075c 100644 --- a/karmaworld/apps/notes/management/commands/populate_s3.py +++ b/karmaworld/apps/notes/management/commands/populate_s3.py @@ -38,8 +38,10 @@ class Command(BaseCommand): # This is a pretty ugly hackified answer to some s3boto shortcomings # and some decent default settings chosen by django-storages. + print "Processing {0}".format(filepath) + html = note.filter_html(html) # S3 upload wants a file-like object. - htmlflo = StringIO(note.html) + htmlflo = StringIO(html) # Create the new key (key == filename in S3 bucket) newkey = default_storage.bucket.new(filepath) # Upload data!