You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by sk...@apache.org on 2013/08/23 00:12:26 UTC

svn commit: r1516640 - /incubator/climate/trunk/rcmet/src/main/python/rcmes/services/main_ws.py

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():