From 957c0b4c0fb2e6674f538888a7e59f772e7a18f6 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 19 Sep 2009 19:02:04 +0200 Subject: [PATCH] Save activity_id if its not yet in the DS #1276 --- src/sugar/activity/activity.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index 180742cb..9c9fde8f 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -599,6 +599,9 @@ class Activity(Window, gtk.Container): if preview is not None: self.metadata['preview'] = dbus.ByteArray(preview) + if not self.metadata.get('activity_id', ''): + self.metadata['activity_id'] = self.get_id() + file_path = os.path.join(self.get_activity_root(), 'instance', '%i' % time.time()) try: