diff options
author | Simon Schampijer <simon@schampijer.de> | 2007-09-20 10:42:53 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2007-09-20 16:41:52 (GMT) |
commit | ac6a7129ed79e399ce8b7db344361ba2e059a669 (patch) | |
tree | 2143bb239ed26426662e036ca11981cf72770654 | |
parent | 944c5dadff7416c019c4ee98821d3d3cac8fee3a (diff) |
Backward compatibility of journal entries to trial-2trial-3
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | model.py | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,5 @@ +* Backward compatibility of journal entries to trial-2 (erikos) + 54 * Update spanish translation. @@ -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 = [] |