All pastes #2088543 Raw Edit

Someone

public python v1 · immutable
#2088543 ·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