From ea3f5cab2c43d267430c179581f6f2008c240b10 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 7 Oct 2016 10:38:50 +0000 Subject: Add JS path to TWITTER_POST_FETCHER --- etc/default_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/default_settings.py b/etc/default_settings.py index d8e57f38..fb3670dd 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -50,6 +50,10 @@ LOG_BENCH = True # Log bench marks USE_REDIS = True # REDIS caching (note that redis will be phased out) USE_GN_SERVER = 'False' # Use GN_SERVER SQL calls +# Paths to JS libraries + +TWITTER_POST_FETCHER_JS_PATH = os.environ['HOME']+"/genenetwork/Twitter-Post-Fetcher" + # ---- Path overrides for Genenetwork # TMPDIR is normally picked up from the environment HOME=os.environ['HOME'] -- cgit v1.2.3 From 3642a641c57621f2cbf87bed4657d58527d7b76f Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 7 Oct 2016 10:49:03 +0000 Subject: Tweets on main page are working --- wqflask/wqflask/templates/index_page_orig.html | 23 ++++++++++++++++++++++- wqflask/wqflask/views.py | 4 ++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/index_page_orig.html b/wqflask/wqflask/templates/index_page_orig.html index 73d3e718..bc811ef6 100755 --- a/wqflask/wqflask/templates/index_page_orig.html +++ b/wqflask/wqflask/templates/index_page_orig.html @@ -221,7 +221,11 @@
  • Germany at the HZI
  • Memphis at the U of M
  • - + +
    + + + @@ -166,8 +171,17 @@ +
    - +
    @@ -294,9 +308,9 @@ "domId": 'tweets', "maxTweets": 5, "enableLinks": true, - "showUser": true, + "showUser": false, "showTime": true, - "showImages": true, + "showImages": false, "lang": 'en' }; twitterFetcher.fetch(configProfile); -- cgit v1.2.3 From d300e9183900962cafbac47b0cbbdb43a49e2019 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 7 Oct 2016 11:37:09 +0000 Subject: Make sure JS path exists --- wqflask/utility/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index c6d8f7d2..31f838b3 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -231,3 +231,5 @@ if os.environ.get('WQFLASK_OVERRIDES'): else: OVERRIDES[k] = cmd logger.debug(OVERRIDES) + +assert_dir(get_setting("TWITTER_POST_FETCHER_JS_PATH")) -- cgit v1.2.3