From 633214e2b6b0f4a5fea74caa8f135115da1961d1 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 10 Aug 2010 14:18:29 +0200 Subject: [PATCH] Call the new invite method in ActivityService InviteCommand and keep a stub for Invite --- src/sugar/activity/activityservice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sugar/activity/activityservice.py b/src/sugar/activity/activityservice.py index d7a31adb..bdce898f 100644 --- a/src/sugar/activity/activityservice.py +++ b/src/sugar/activity/activityservice.py @@ -67,9 +67,13 @@ class ActivityService(dbus.service.Object): self._activity.props.active = active @dbus.service.method(_ACTIVITY_INTERFACE) - def Invite(self, account_path, contact_id): + def InviteContact(self, account_path, contact_id): self._activity.invite(account_path, contact_id) + @dbus.service.method(_ACTIVITY_INTERFACE) + def Invite(self, buddy_key): + raise NotImplementedError + @dbus.service.method(_ACTIVITY_INTERFACE) def HandleViewSource(self): self._activity.handle_view_source()