climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [1/2] climate git commit: CLIMATE-740 - Add path handler for img directory to run_webservices.py.
Date Tue, 02 Feb 2016 18:28:07 GMT
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 <michael.arthur.anderson@gmail.com>
Authored: Sun Jan 31 14:26:38 2016 -0500
Committer: MichaelArthurAnderson <michael.arthur.anderson@gmail.com>
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/<file_path:path>')
 def get_eval_result_image(file_path):
     ''' Return static file.
-    
+
     Return static file specified by root + filepath where root defaults to:
         /tmp/ocw
 


Mime
View raw message