From ac6a7129ed79e399ce8b7db344361ba2e059a669 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 20 Sep 2007 10:42:53 +0000 Subject: Backward compatibility of journal entries to trial-2 --- 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 = [] -- cgit v0.9.1