Adapt to activity api change

This commit is contained in:
Marco Pesenti Gritti 2007-02-22 17:27:00 +01:00
parent c4435397fc
commit fc805d3a88
2 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class HomeActivity(gobject.GObject):
act_id = self._service.get_id() act_id = self._service.get_id()
if act_id != self._id: if act_id != self._id:
raise RuntimeError("Activity's real ID (%s) didn't match expected (%s)." % (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: if act_type != self._type:
raise RuntimeError("Activity's real type (%s) didn't match expected (%s)." % (act_type, self._type)) raise RuntimeError("Activity's real type (%s) didn't match expected (%s)." % (act_type, self._type))

View File

@ -16,6 +16,7 @@
# Boston, MA 02111-1307, USA. # Boston, MA 02111-1307, USA.
import logging import logging
import os
import gtk import gtk