From 854862e1c73bf0c521e08b8973721e8be7aeb82e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 1 Apr 2015 22:57:15 +0200 Subject: Bugfix. --- runserver.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'runserver.py') diff --git a/runserver.py b/runserver.py index 156ae320..db1c4410 100755 --- a/runserver.py +++ b/runserver.py @@ -27,15 +27,6 @@ if conf.ON_HEROKU: from flask_sslify import SSLify SSLify(application) -ALLOWED_EXTENSIONS = set(['xml', 'opml', 'json']) - -def allowed_file(filename): - """ - Check if the uploaded file is allowed. - """ - return '.' in filename and \ - filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS - babel = Babel(application) # Jinja filters @@ -54,7 +45,6 @@ with application.app_context(): populate_g() g.api = Api(application, prefix='/api/v2.0') g.babel = babel - g.allowed_file = allowed_file from pyaggr3g470r import views application.register_blueprint(views.articles_bp) -- cgit