Revert "Adapt to dbus-python API change"

This reverts commit 7391e4a3c3.
This commit is contained in:
Marco Pesenti Gritti 2007-09-27 20:53:41 +02:00
parent 7391e4a3c3
commit e543eada4e

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, timeout=120 * 1000,
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, timeout=120 * 1000,
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)