switch to simplejson and complete setup.py
This commit is contained in:
parent
8e6a6f74e5
commit
2cf7e9d67a
2 changed files with 9 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
from paste.request import parse_formvars
|
||||
import pkg_resources
|
||||
import minjson
|
||||
import simplejson
|
||||
from ConfigParser import ConfigParser
|
||||
from urllib import quote_plus
|
||||
|
||||
|
@ -31,7 +31,7 @@ def app(environ, start_response):
|
|||
data = build_urls(fields)
|
||||
if ('mode' in fields and fields['mode'] == 'json'):
|
||||
start_response('200 OK', [('content-type', 'text/json')])
|
||||
return [minjson.write(data)]
|
||||
return [simplejson.dumps(data)]
|
||||
else:
|
||||
start_response('200 OK', [('content-type', 'text/html')])
|
||||
return ['''<html>
|
||||
|
|
6
setup.py
6
setup.py
|
@ -26,9 +26,13 @@ array of URLs.""",
|
|||
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
package_data= {
|
||||
'ddportfolioservice' : ['*.ini'],
|
||||
},
|
||||
install_requires=[
|
||||
# -*- Extra requirements: -*-
|
||||
'Paste',
|
||||
'PasteDeploy',
|
||||
'python-json'
|
||||
'simplejson'
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue