fixed NoSQL Json, thanks Alan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.5-stable+timestamp.2013.03.21.15.09.50
|
Version 2.4.5-stable+timestamp.2013.03.25.15.24.28
|
||||||
|
|||||||
+8
-7
@@ -4364,13 +4364,14 @@ class NoSQLAdapter(BaseAdapter):
|
|||||||
elif fieldtype == 'blob':
|
elif fieldtype == 'blob':
|
||||||
pass
|
pass
|
||||||
elif fieldtype == 'json':
|
elif fieldtype == 'json':
|
||||||
obj = self.to_unicode(obj)
|
if isinstance(obj, basestring):
|
||||||
if have_serializers:
|
obj = self.to_unicode(obj)
|
||||||
obj = serializers.loads_json(obj)
|
if have_serializers:
|
||||||
elif simplejson:
|
obj = serializers.loads_json(obj)
|
||||||
obj = simplejson.loads(obj)
|
elif simplejson:
|
||||||
else:
|
obj = simplejson.loads(obj)
|
||||||
raise RuntimeError("missing simplejson")
|
else:
|
||||||
|
raise RuntimeError("missing simplejson")
|
||||||
elif is_string and field_is_type('list:string'):
|
elif is_string and field_is_type('list:string'):
|
||||||
return map(self.to_unicode,obj)
|
return map(self.to_unicode,obj)
|
||||||
elif is_list:
|
elif is_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user