Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-09-20 10:42:53 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-09-20 16:41:52 (GMT)
commitac6a7129ed79e399ce8b7db344361ba2e059a669 (patch)
tree2143bb239ed26426662e036ca11981cf72770654
parent944c5dadff7416c019c4ee98821d3d3cac8fee3a (diff)
Backward compatibility of journal entries to trial-2trial-3
-rw-r--r--NEWS2
-rw-r--r--model.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index be554f5..4d35106 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+* Backward compatibility of journal entries to trial-2 (erikos)
+
54
* Update spanish translation.
diff --git a/model.py b/model.py
index 987c5dd..ae2d505 100644
--- a/model.py
+++ b/model.py
@@ -63,7 +63,11 @@ class Model(gobject.GObject):
return json.write(self.data)
def deserialize(self, data):
- self.data = json.read(data)
+ self.data = json.read(data)
+ if not self.data.has_key('shared_links'):
+ self.data['shared_links'] = []
+ if not self.data.has_key('deleted'):
+ self.data['deleted'] = []
def get_links_ids(self):
ids = []