Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9695E18E89 for ; Tue, 2 Feb 2016 18:28:07 +0000 (UTC) Received: (qmail 10226 invoked by uid 500); 2 Feb 2016 18:28:07 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 10185 invoked by uid 500); 2 Feb 2016 18:28:07 -0000 Mailing-List: contact commits-help@climate.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.apache.org Delivered-To: mailing list commits@climate.apache.org Received: (qmail 10170 invoked by uid 99); 2 Feb 2016 18:28:07 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 18:28:07 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 28BC3DFD7D; Tue, 2 Feb 2016 18:28:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lewismc@apache.org To: commits@climate.apache.org Date: Tue, 02 Feb 2016 18:28:07 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] climate git commit: CLIMATE-740 - Add path handler for img directory to run_webservices.py. Repository: climate Updated Branches: refs/heads/master c6249f641 -> 4bcd9d071 CLIMATE-740 - Add path handler for img directory to run_webservices.py. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/0837468b Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/0837468b Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/0837468b Branch: refs/heads/master Commit: 0837468bf7185d69635c53ed0c4787b4d9745991 Parents: adf9ccd Author: MichaelArthurAnderson Authored: Sun Jan 31 14:26:38 2016 -0500 Committer: MichaelArthurAnderson Committed: Sun Jan 31 14:26:38 2016 -0500 ---------------------------------------------------------------------- ocw-ui/backend/run_webservices.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/0837468b/ocw-ui/backend/run_webservices.py ---------------------------------------------------------------------- diff --git a/ocw-ui/backend/run_webservices.py b/ocw-ui/backend/run_webservices.py index 3f38e2c..dae2567 100644 --- a/ocw-ui/backend/run_webservices.py +++ b/ocw-ui/backend/run_webservices.py @@ -49,10 +49,14 @@ def serve_static(path): def serve_static(path): return static_file(path, root='./frontend/app/views/') +@app.route('/img/:path#.+#') +def server_static(path): + return static_file(path, root='./frontend/app/img/') + @app.route('/static/eval_results/') def get_eval_result_image(file_path): ''' Return static file. - + Return static file specified by root + filepath where root defaults to: /tmp/ocw