You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/06/26 21:05:48 UTC
svn commit: r1497047 -
/incubator/climate/trunk/rcmet/src/main/python/rcmes/services/list_vars_in_file.py
Author: joyce
Date: Wed Jun 26 19:05:48 2013
New Revision: 1497047
URL: http://svn.apache.org/r1497047
Log:
Resolve CLIMATE-167 - Fix variable access in list_vars service
Modified:
incubator/climate/trunk/rcmet/src/main/python/rcmes/services/list_vars_in_file.py
Modified: incubator/climate/trunk/rcmet/src/main/python/rcmes/services/list_vars_in_file.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/services/list_vars_in_file.py?rev=1497047&r1=1497046&r2=1497047&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/python/rcmes/services/list_vars_in_file.py (original)
+++ incubator/climate/trunk/rcmet/src/main/python/rcmes/services/list_vars_in_file.py Wed Jun 26 19:05:48 2013
@@ -59,8 +59,8 @@ def list_vars(filename):
print 'Error_reading_file '+filename
if success: #make some json
- var_name_list = json.dumps({'variables':f.variables.keys().encode() }, \
- sort_keys=True, indent=2)
+ var_name_list = json.dumps({'variables': f.variables.keys()},
+ sort_keys=True, indent=2)
if (request.query.callback):
return "%s(%s)" % (request.query.callback, var_name_list)
return var_name_list