def get_color_schemes_json(self): cherrypy.response.headers['Cache-Control'] = 'max-age=86400' # cache for a day pth = os.path.join(os.path.dirname(tvb.interfaces.web.__file__), 'static', 'coloring', 'color_schemes.png') return color_texture_to_list(pth, 256, 8)
def get_color_schemes_json(self): cherrypy.response.headers[ 'Cache-Control'] = 'max-age=86400' # cache for a day pth = os.path.join(os.path.dirname(tvb.interfaces.web.__file__), 'static', 'coloring', 'color_schemes.png') return color_texture_to_list(pth, 256, 8)
def get_color_schemes_json(self): cherrypy.response.headers["Cache-Control"] = "max-age=86400" # cache for a day pth = os.path.join(os.path.dirname(tvb.interfaces.web.__file__), "static", "coloring", "color_schemes.png") return color_texture_to_list(pth, 256, 8)