From 7391e4a3c3b24045802191bf83abed405b02cfc6 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 27 Sep 2007 20:46:20 +0200 Subject: [PATCH] Adapt to dbus-python API change --- sugar/activity/activityfactory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/activity/activityfactory.py b/sugar/activity/activityfactory.py index 10417479..967d10d9 100644 --- a/sugar/activity/activityfactory.py +++ b/sugar/activity/activityfactory.py @@ -143,7 +143,7 @@ class ActivityCreationHandler(gobject.GObject): if not os.path.exists('/etc/olpc-security'): handle = self._handle.get_dict() self._factory.create(dbus.Dictionary(handle, signature='ss'), - timeout=120 * 1000, + timeout=120, reply_handler=self._no_reply_handler, error_handler=self._create_error_handler) else: @@ -153,7 +153,7 @@ class ActivityCreationHandler(gobject.GObject): factory.CreateActivity( self._service_name, self._handle.get_dict(), - timeout=120 * 1000, + timeout=120, reply_handler=self._create_reply_handler, error_handler=self._create_error_handler, dbus_interface=_RAINBOW_ACTIVITY_FACTORY_INTERFACE)