Pastebin
Paste #3286: No description
< previous paste - next paste>
Pasted by Anonymous Coward
from flask.ext.uploads import UploadSet, configure_uploads, patch_request_class from flask.ext import uploads upload_files = UploadSet('files', uploads.ALL, "/tmp") configure_uploads(app, (upload_files)) upload_images = UploadSet('images', uploads.IMAGES, "/tmp/images") configure_uploads(app, (upload_images)) # This is the line that fails patch_request_class(app, size=32*1024*1024) ------------- Traceback (most recent call last): File "run.py", line 2, in <module> from app import app File "/data/www/virtual/bespecific.dk/adora-cms/app/__init__.py", line 33, in <module> configure_uploads(app, (upload_images)) File "/data/www/virtual/bespecific.dk/adora-cms/venv/local/lib/python2.7/site-packages/flaskext/uploads.py", line 194, in configure_uploads config = config_for_set(uset, app, defaults) File "/data/www/virtual/bespecific.dk/adora-cms/venv/local/lib/python2.7/site-packages/flaskext/uploads.py", line 155, in config_for_set destination = uset.default_dest(app) TypeError: 'str' object is not callable
New Paste
Go to most recent paste.