Skip to content
Open

Json #20

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Install the python-cheetah package, pandoc, python-augeas, and
bjsonrpc:

apt-get install python-cheetah pandoc python-augeas python-bjsonrpc python-cherrypy3 python-simplejson
apt-get install python-cheetah pandoc python-augeas python-bjsonrpc python-cherrypy3

Unzip and untar the source into a directory. Change to the directory
containing the program. Run:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ default: predepend config dirs template css docs dbs
all: default

predepend:
sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson pandoc python-cheetah python-cherrypy3"
sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas pandoc python-cheetah python-cherrypy3"
git submodule init
git submodule update
touch predepend
Expand Down
5 changes: 5 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# plinth box

import os,sys, subprocess
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json

import simplejson as json
import fabric.api
from fabric.api import local, env, cd, put, get, task
Expand Down
7 changes: 6 additions & 1 deletion filedict.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
Date : 31-May-2009
"""

import simplejson as json ## jlv replaced pickle with json
import sys
## jlv replaced pickle with json
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json

import UserDict
##import cPickle as pickle
Expand Down
7 changes: 6 additions & 1 deletion menu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import simplejson as json

import sys
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
from urlparse import urlparse
import cherrypy
import cfg
Expand Down
6 changes: 5 additions & 1 deletion modules/installed/lib/user_store.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import os
import simplejson as json
import sys
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
import cherrypy
import cfg
from model import User
Expand Down
5 changes: 4 additions & 1 deletion modules/installed/santiago/santiago.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

import os, sys
import cherrypy
import simplejson as json
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
from gettext import gettext as _
from plugin_mount import PagePlugin
from modules.auth import require
Expand Down
6 changes: 5 additions & 1 deletion modules/installed/system/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import os, subprocess
from socket import gethostname
import cherrypy
import simplejson as json
import sys
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
from gettext import gettext as _
from filedict import FileDict
from modules.auth import require
Expand Down
6 changes: 5 additions & 1 deletion modules/installed/system/expert_mode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os
import cherrypy
import simplejson as json
import sys
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
from gettext import gettext as _
from filedict import FileDict
from modules.auth import require
Expand Down
6 changes: 5 additions & 1 deletion modules/installed/system/system.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os
import cherrypy
import simplejson as json
import sys
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
from gettext import gettext as _
from filedict import FileDict
from auth import require
Expand Down
6 changes: 5 additions & 1 deletion modules/installed/system/wan.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os
import cherrypy
import simplejson as json
import sys
if sys.version_info >= (2, 6):
import json
else:
import simplejson as json
from gettext import gettext as _
from filedict import FileDict
from modules.auth import require
Expand Down
2 changes: 1 addition & 1 deletion vendor/withsqlite
Submodule withsqlite updated 8 files
+10 −0 .travis.yml
+674 −0 LICENSE
+103 −0 README.mdwn
+10 −0 TODO.txt
+13 −0 runtests.py
+40 −0 setup.py
+121 −0 test/test_withsqlite.py
+186 −185 withsqlite.py