climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skhud...@apache.org
Subject svn commit: r1516640 - /incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py
Date Thu, 22 Aug 2013 22:12:26 GMT
Author: skhudiky
Date: Thu Aug 22 22:12:25 2013
New Revision: 1516640

URL: http://svn.apache.org/r1516640
Log:
 CLIMATE-277 - service '/static/evalResults/' should take a path input

Modified:
    incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py

Modified: incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py?rev=1516640&r1=1516639&r2=1516640&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py (original)
+++ incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py Thu Aug 22 22:12:25
2013
@@ -39,9 +39,9 @@ def hello():
 def api_status():
     return {'status':'online', 'key':'value'}
 
-@route('/static/evalResults/<filename>')
-def get_eval_result_image(filename):
-    return static_file(filename, root="/tmp/rcmet")
+@route('/static/evalResults/<filepath:path>')
+def get_eval_result_image(filepath):
+    return static_file(filepath, root="/tmp/rcmet")
 
 @hook('after_request')
 def enable_cors():



Mime
View raw message