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