superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: docs: fixup installation examples code indentation (#3169)
Date Wed, 26 Jul 2017 16:20:10 GMT
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 747bf80  docs: fixup installation examples code indentation (#3169)
747bf80 is described below

commit 747bf80474039d7d4c90fea72535e70b277e5a2c
Author: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
AuthorDate: Wed Jul 26 18:20:06 2017 +0200

    docs: fixup installation examples code indentation (#3169)
---
 docs/installation.rst | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/docs/installation.rst b/docs/installation.rst
index 10aa7d7..c9b027a 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -392,13 +392,13 @@ have the same configuration.
 
 .. code-block:: python
 
- 	class CeleryConfig(object):
-    	BROKER_URL = 'redis://localhost:6379/0'
-		CELERY_IMPORTS = ('superset.sql_lab', )
-		CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
-		CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
+    class CeleryConfig(object):
+        BROKER_URL = 'redis://localhost:6379/0'
+        CELERY_IMPORTS = ('superset.sql_lab', )
+        CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
+        CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
 
-  	CELERY_CONFIG = CeleryConfig
+    CELERY_CONFIG = CeleryConfig
 
 To setup a result backend, you need to pass an instance of a derivative
 of ``werkzeug.contrib.cache.BaseCache`` to the ``RESULTS_BACKEND``
@@ -410,13 +410,13 @@ look something like:
 
 .. code-block:: python
 
-	# On S3
-  	from s3cache.s3cache import S3Cache
-  	S3_CACHE_BUCKET = 'foobar-superset'
-	S3_CACHE_KEY_PREFIX = 'sql_lab_result'
-  	RESULTS_BACKEND = S3Cache(S3_CACHE_BUCKET, S3_CACHE_KEY_PREFIX)
+    # On S3
+    from s3cache.s3cache import S3Cache
+    S3_CACHE_BUCKET = 'foobar-superset'
+    S3_CACHE_KEY_PREFIX = 'sql_lab_result'
+    RESULTS_BACKEND = S3Cache(S3_CACHE_BUCKET, S3_CACHE_KEY_PREFIX)
 
-	# On Redis
+    # On Redis
     from werkzeug.contrib.cache import RedisCache
     RESULTS_BACKEND = RedisCache(
         host='localhost', port=6379, key_prefix='superset_results')

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message