# HG changeset patch # User ymh # Date 1264987103 -3600 # Node ID 4834a1f12295f23488f4a965633fef9c453cd649 # Parent 8a2f6d79fd63f7d49c474896797492d6dc9d1e7b try to correct json serialisatio,n diff -r 8a2f6d79fd63 -r 4834a1f12295 web/blinkster/__init__.py --- a/web/blinkster/__init__.py Fri Jan 29 05:57:40 2010 +0100 +++ b/web/blinkster/__init__.py Mon Feb 01 02:18:23 2010 +0100 @@ -1,3 +1,3 @@ -VERSION = (0,7) +VERSION = (0,8) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION))) diff -r 8a2f6d79fd63 -r 4834a1f12295 web/blinkster/views.py --- a/web/blinkster/views.py Fri Jan 29 05:57:40 2010 +0100 +++ b/web/blinkster/views.py Mon Feb 01 02:18:23 2010 +0100 @@ -15,6 +15,7 @@ import blinkster import re import urllib2 +import blinkster.utils.log def serialize_queryset_to_json(response, obj_list, extra=None): objs = { @@ -24,7 +25,10 @@ if extra: objs = dict(objs, **extra) - simplejson.dump(objs, response, cls=DjangoJSONEncoder,ensure_ascii=False, indent=4) + #blinkster.utils.log.debug("before views dumps JSON RES : " + repr(objs)) + res = simplejson.dumps(objs, cls=DjangoJSONEncoder,ensure_ascii=False, indent=4) + #blinkster.utils.log.debug("views dumps JSON RES : " + res) + response.write(res) return response def roi_list(request):