Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def write_jsonp_output(response, dic, jsonp_callback):
    if is_none_or_empty(jsonp_callback):
        write_json_output(response, dic)
    else:
        response_text, content_type = jsonp_callback + "(" + json.dumps(dic) + ")", "application/javascript"
        _do_write(response, response_text, content_type)
        


src/e/x/ExchangeRates-HEAD/src/temperature.py   ExchangeRates(Download)
            result = invalid_request
 
        utils.write_jsonp_output(response, result, jsonp_callback)
 
 

src/e/x/ExchangeRates-HEAD/src/currency_rates.py   ExchangeRates(Download)
            result = {u'err': u'invalid request'}
 
        utils.write_jsonp_output(response, result, callback)