From fc805d3a8890156cd74aeca91f1be7f200053481 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 22 Feb 2007 17:27:00 +0100 Subject: [PATCH] Adapt to activity api change --- shell/model/homeactivity.py | 2 +- sugar/activity/activity.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py index 4b5a1e37..d4962f31 100644 --- a/shell/model/homeactivity.py +++ b/shell/model/homeactivity.py @@ -82,7 +82,7 @@ class HomeActivity(gobject.GObject): act_id = self._service.get_id() if act_id != self._id: raise RuntimeError("Activity's real ID (%s) didn't match expected (%s)." % (act_id, self._id)) - act_type = self._service.get_type() + act_type = self._service.get_service_name() if act_type != self._type: raise RuntimeError("Activity's real type (%s) didn't match expected (%s)." % (act_type, self._type)) diff --git a/sugar/activity/activity.py b/sugar/activity/activity.py index 3c6f64a6..3e039882 100644 --- a/sugar/activity/activity.py +++ b/sugar/activity/activity.py @@ -16,6 +16,7 @@ # Boston, MA 02111-1307, USA. import logging +import os import gtk