allow jsonp on mashupbytag.
--- a/src/ldt/ldt/ldt_utils/views/json.py Fri Aug 24 16:44:08 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/views/json.py Mon Aug 27 12:59:34 2012 +0200
@@ -144,6 +144,11 @@
if escape_bool:
json_str = escape(json_str)
+ # Callback to allo jsonp
+ callback = request.REQUEST.get("callback")
+ if callback is not None:
+ json_str = "%s(%s)" % (callback, json_str)
+
resp = HttpResponse(mimetype="application/json; charset=utf-8")
resp['Cache-Control'] = 'no-cache, must-revalidate'
resp['Pragma'] = 'no-cache'