Adapt to dbus-python API change

This commit is contained in:
Marco Pesenti Gritti 2007-09-27 20:46:20 +02:00
parent 09a775e13a
commit 7391e4a3c3

View File

@ -143,7 +143,7 @@ class ActivityCreationHandler(gobject.GObject):
if not os.path.exists('/etc/olpc-security'): if not os.path.exists('/etc/olpc-security'):
handle = self._handle.get_dict() handle = self._handle.get_dict()
self._factory.create(dbus.Dictionary(handle, signature='ss'), self._factory.create(dbus.Dictionary(handle, signature='ss'),
timeout=120 * 1000, timeout=120,
reply_handler=self._no_reply_handler, reply_handler=self._no_reply_handler,
error_handler=self._create_error_handler) error_handler=self._create_error_handler)
else: else:
@ -153,7 +153,7 @@ class ActivityCreationHandler(gobject.GObject):
factory.CreateActivity( factory.CreateActivity(
self._service_name, self._service_name,
self._handle.get_dict(), self._handle.get_dict(),
timeout=120 * 1000, timeout=120,
reply_handler=self._create_reply_handler, reply_handler=self._create_reply_handler,
error_handler=self._create_error_handler, error_handler=self._create_error_handler,
dbus_interface=_RAINBOW_ACTIVITY_FACTORY_INTERFACE) dbus_interface=_RAINBOW_ACTIVITY_FACTORY_INTERFACE)