Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/bundleregistry.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/model/bundleregistry.py')
-rw-r--r--src/jarabe/model/bundleregistry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index b754952..aa49c72 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -21,7 +21,7 @@ import traceback
import gobject
import gio
-import cjson
+import simplejson
from sugar.bundle.activitybundle import ActivityBundle
from sugar.bundle.contentbundle import ContentBundle
@@ -107,7 +107,7 @@ class BundleRegistry(gobject.GObject):
def _load_favorites(self):
favorites_path = env.get_profile_path('favorite_activities')
if os.path.exists(favorites_path):
- favorites_data = cjson.decode(open(favorites_path).read())
+ favorites_data = simplejson.load(open(favorites_path))
favorite_bundles = favorites_data['favorites']
if not isinstance(favorite_bundles, dict):
@@ -322,7 +322,7 @@ class BundleRegistry(gobject.GObject):
path = env.get_profile_path('favorite_activities')
favorites_data = {'defaults-mtime': self._last_defaults_mtime,
'favorites': self._favorite_bundles}
- open(path, 'w').write(cjson.encode(favorites_data))
+ simplejson.dump(favorites_data, open(path, 'w'), indent=1)
def is_installed(self, bundle):
# TODO treat ContentBundle in special way