Source

meblog / utilities / blob_helper.py

Diff from to

File utilities/blob_helper.py

 import cgi
 from google.appengine.ext import blobstore
+from django.http import HttpResponse
+import logging
 
 
 def get_uploads(request, field_name=None, populate_post=False):
     """
 
     CONTENT_DISPOSITION_FORMAT = 'attachment; filename="%s"'
+    logging.info(blob_key_or_info)
     if isinstance(blob_key_or_info, blobstore.BlobInfo):
       blob_key = blob_key_or_info.key()
       blob_info = blob_key_or_info
       blob_key = blob_key_or_info
       blob_info = None
 
-    logging.debug(blob_info)
+    #logging.debug(blob_info)
     response = HttpResponse()
     response[blobstore.BLOB_KEY_HEADER] = str(blob_key)