Fix support for the CLOB datatype in EPAS. Fixes #3596

This commit is contained in:
Aditya Toshniwal
2018-09-13 13:45:06 +01:00
committed by Dave Page
parent d6c64e8f11
commit 38ddea038a
8 changed files with 74 additions and 48 deletions

View File

@@ -30,6 +30,19 @@ class DataTypeJSONEncoder(json.JSONEncoder):
return json.JSONEncoder.default(self, obj)
class ColParamsJSONDecoder(json.JSONDecoder):
def decode(self, obj):
retval = obj
try:
retval = json.JSONDecoder.decode(self, obj)
if type(retval) == str:
retVal = obj
except (ValueError, TypeError, KeyError):
retval = obj
return retval
def get_no_cache_header():
"""
Prevent browser from caching data every time an