mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
Use json instead of simplejson library to avoid extra depedency
Simplejson is an externally mainainted version of json library available in Python 2.6 and up. It supports Python 2.5 which were are not targetting. It also boasts better speed which is not at all a factor for us.
This commit is contained in:
parent
be842a5baa
commit
defcb43883
2
INSTALL
2
INSTALL
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Install the dependencies:
|
Install the dependencies:
|
||||||
|
|
||||||
apt-get install libpython2.7 pandoc psmisc python2.7 python-bcrypt python-cherrypy3 python-django python-passlib python-simplejson python-bootstrapform libjs-twitter-bootstrap sudo
|
apt-get install libpython2.7 pandoc psmisc python2.7 python-bcrypt python-cherrypy3 python-django python-passlib python-bootstrapform libjs-twitter-bootstrap sudo
|
||||||
|
|
||||||
Unzip and untar the source into a directory. Change to the directory
|
Unzip and untar the source into a directory. Change to the directory
|
||||||
containing the program. Run:
|
containing the program. Run:
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ default: config dirs docs
|
|||||||
all: default
|
all: default
|
||||||
|
|
||||||
predepend:
|
predepend:
|
||||||
sudo sh -c "apt-get install libpython2.7 pandoc psmisc python2.7 python-bcrypt python-cherrypy3 python-django python-passlib python-simplejson python-bootstrapform libjs-twitter-bootstrap sudo"
|
sudo sh -c "apt-get install libpython2.7 pandoc psmisc python2.7 python-bcrypt python-cherrypy3 python-django python-passlib python-bootstrapform libjs-twitter-bootstrap sudo"
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
touch predepend
|
touch predepend
|
||||||
|
|||||||
7
fabfile.py
vendored
7
fabfile.py
vendored
@ -7,10 +7,7 @@
|
|||||||
# plinth box
|
# plinth box
|
||||||
|
|
||||||
import os,sys, subprocess
|
import os,sys, subprocess
|
||||||
try:
|
import json
|
||||||
import simplejson as json
|
|
||||||
except ImportError:
|
|
||||||
import json
|
|
||||||
import fabric.api
|
import fabric.api
|
||||||
from fabric.api import local, env, cd, put, get, task
|
from fabric.api import local, env, cd, put, get, task
|
||||||
|
|
||||||
@ -150,7 +147,7 @@ def apache():
|
|||||||
@task
|
@task
|
||||||
def deps():
|
def deps():
|
||||||
"Basic plinth dependencies"
|
"Basic plinth dependencies"
|
||||||
sudo('apt-get install --no-install-recommends -y python make pandoc python-simplejson python-pyme python-django python-bootstrapform libjs-twitter-bootstrap')
|
sudo('apt-get install --no-install-recommends -y python make pandoc python-pyme python-django python-bootstrapform libjs-twitter-bootstrap')
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def update():
|
def update():
|
||||||
|
|||||||
@ -5,13 +5,9 @@ Author: Erez Shinan
|
|||||||
Date : 31-May-2009
|
Date : 31-May-2009
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
import json
|
||||||
import simplejson as json ## jlv replaced pickle with json
|
|
||||||
except ImportError:
|
|
||||||
import json
|
|
||||||
|
|
||||||
import UserDict
|
import UserDict
|
||||||
##import cPickle as pickle
|
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,3 @@
|
|||||||
import os
|
|
||||||
try:
|
|
||||||
import simplejson as json
|
|
||||||
except ImportError:
|
|
||||||
import json
|
|
||||||
import cherrypy
|
import cherrypy
|
||||||
import cfg
|
import cfg
|
||||||
from model import User
|
from model import User
|
||||||
|
|||||||
@ -7,10 +7,6 @@ haven't figured that one all the way through yet.
|
|||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
import cherrypy
|
import cherrypy
|
||||||
try:
|
|
||||||
import simplejson as json
|
|
||||||
except ImportError:
|
|
||||||
import json
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
from plugin_mount import PagePlugin
|
from plugin_mount import PagePlugin
|
||||||
from modules.auth import require
|
from modules.auth import require
|
||||||
|
|||||||
@ -23,10 +23,7 @@ import cherrypy
|
|||||||
from django import forms
|
from django import forms
|
||||||
from django.core import validators
|
from django.core import validators
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
try:
|
import json
|
||||||
import simplejson as json
|
|
||||||
except ImportError:
|
|
||||||
import json
|
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user