Example #1
0
def get_state(state_name_or_code):
    state = State.get_one_state(state_name_or_code)
    return Response(dumps(state), mimetype='application/json')
Example #2
0
def get_state(state_name_or_code):
    state = State.get_one_state(urllib.unquote(state_name_or_code))
    return Response(dumps(state), mimetype='application/json')
Example #3
0
def get_state(state_name_or_code):
    state = State.get_one_state(urllib.unquote(state_name_or_code.encode("utf8")))
    return Response(dumps(state), mimetype="application/json")