Public feed #2088543

Someone

public python v1 · immutable
Raw Edit
·published 2011-10-10 04:01 UTC
rendered paste body
@view_config(route_name="test1")def do_test1(request):	r = Response( body=json.dumps({'aa':'bb', 'message':'this is the message'}), content_type="application/json")		r.headers['Access-Control-Allow-Origin'] = '*'	  # hack so that testing from file:/// works	return r