diff options
author | Simon Schampijer <simon@schampijer.de> | 2007-09-20 10:42:53 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2007-09-20 10:42:53 (GMT) |
commit | 47d6cd3795291f76a4ef0a54e33423ad151bbaa3 (patch) | |
tree | 2143bb239ed26426662e036ca11981cf72770654 /model.py | |
parent | 944c5dadff7416c019c4ee98821d3d3cac8fee3a (diff) |
Backward compatibility of journal entries to trial-2
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 = [] |