From d2897a334fb5d4adbb671015fea8c2249dc000f7 Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Sat, 9 Jan 2016 18:05:15 +0530 Subject: [PATCH] Using simplejson for jsonify the data of type Decimal, which will used for numeric type of PostgreSQL, in python using psycopg2. --- requirements_py2.txt | 1 + requirements_py3.txt | 3 ++- web/pgadmin/utils/ajax.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements_py2.txt b/requirements_py2.txt index 45f827aef..6989ba7f7 100644 --- a/requirements_py2.txt +++ b/requirements_py2.txt @@ -26,3 +26,4 @@ six==1.9.0 speaklater==1.3 pycrypto==2.6.1 wsgiref==0.1.2 +simplejson==3.6.5 diff --git a/requirements_py3.txt b/requirements_py3.txt index 45ebdd847..a4e95d758 100644 --- a/requirements_py3.txt +++ b/requirements_py3.txt @@ -24,4 +24,5 @@ psycopg2==2.5.2 pytz==2014.10 six==1.9.0 speaklater==1.3 -pycrypto==2.6.1 \ No newline at end of file +pycrypto==2.6.1 +simplejson==3.6.5 diff --git a/web/pgadmin/utils/ajax.py b/web/pgadmin/utils/ajax.py index 1b2754ffa..32fc9cf68 100644 --- a/web/pgadmin/utils/ajax.py +++ b/web/pgadmin/utils/ajax.py @@ -11,7 +11,7 @@ from flask import Response from flask.ext.babel import gettext as _ -import json +import simplejson as json def make_json_response(success=1, errormsg='', info='', result=None,