This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new d817b8d  Setting up compression using flask-compress (#4543)
d817b8d is described below

commit d817b8ddbb3a8a1bd706f47ecd0934781aea100f
Author: Maxime Beauchemin <maximebeauche...@gmail.com>
AuthorDate: Tue Mar 6 21:19:29 2018 -0800

    Setting up compression using flask-compress (#4543)
---
 setup.py             | 1 +
 superset/__init__.py | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/setup.py b/setup.py
index 682fe33..ad33dce 100644
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,7 @@ setup(
         'flask-cache==0.13.1',
         'flask-migrate==2.1.1',
         'flask-script==2.0.6',
+        'flask-compress==1.4.0',
         'flask-sqlalchemy==2.1',
         'flask-testing==0.7.1',
         'flask-wtf==0.14.2',
diff --git a/superset/__init__.py b/superset/__init__.py
index 778bb61..fbf11c0 100644
--- a/superset/__init__.py
+++ b/superset/__init__.py
@@ -13,6 +13,7 @@ import os
 from flask import Flask, redirect
 from flask_appbuilder import AppBuilder, IndexView, SQLA
 from flask_appbuilder.baseviews import expose
+from flask_compress import Compress
 from flask_migrate import Migrate
 from flask_wtf.csrf import CSRFProtect
 from werkzeug.contrib.fixers import ProxyFix
@@ -166,6 +167,9 @@ module_datasource_map = 
app.config.get('DEFAULT_MODULE_DS_MAP')
 module_datasource_map.update(app.config.get('ADDITIONAL_MODULE_DS_MAP'))
 ConnectorRegistry.register_sources(module_datasource_map)
 
+# Flask-Compress
+Compress(app)
+
 # Hook that provides administrators a handle on the Flask APP
 # after initialization
 flask_app_mutator = app.config.get('FLASK_APP_MUTATOR')

-- 
To stop receiving notification emails like this one, please contact
maximebeauche...@apache.org.

Reply via email to