Commits

Waldemar Kornewald committed 475cd73

updated to new API

Comments (0)

Files changed (2)

     EMAIL_BACKEND = 'djangoappengine.mail.EmailBackend'
 
 FILETRANSFERS_UPLOAD_BACKEND = 'djangoappengine.storage.prepare_upload'
-FILETRANSFERS_SERVING_BACKEND = 'djangoappengine.storage.serve_file'
+FILETRANSFERS_DOWNLOAD_BACKEND = 'djangoappengine.storage.serve_file'
 DEFAULT_FILE_STORAGE = 'djangoappengine.storage.BlobstoreStorage'
 FILE_UPLOAD_MAX_MEMORY_SIZE = 1024 * 1024
 FILE_UPLOAD_HANDLERS = (
 from google.appengine.ext.blobstore import BlobInfo, BlobKey, delete, \
     create_upload_url, BLOB_KEY_HEADER
 
-def prepare_upload(url):
+def prepare_upload(request, url):
     return create_upload_url(url)
 
 def serve_file(request, file, save_as, content_type):