From 7023b15eb1c40670b463c6fbb6efd02f9b2c8d2c Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Mon, 20 Feb 2012 16:24:47 +0000 Subject: Fix DBus signature for restore() (gdatastore native interface) InternalApi.save() returns the identifiers for the new entry, so we need to either wrap the callback to drop the identifiers (like we do in DBusApiSugarV2.update()) or adjust the DBus signature for DBusApiNativeV1.restore(). While the caller is supposed to pass in all identifiers, it doesn't hurt to return what was actually used. --- diff --git a/gdatastore/datastore.py b/gdatastore/datastore.py index c0d59d8..62489a0 100644 --- a/gdatastore/datastore.py +++ b/gdatastore/datastore.py @@ -182,7 +182,7 @@ class DBusApiNativeV1(dbus.service.Object): return self._internal_api.find(query_dict, options, query_string) @dbus.service.method(DBUS_INTERFACE_NATIVE_V1, - in_signature='sssa{sv}s', out_signature='', + in_signature='sssa{sv}s', out_signature='ss', async_callbacks=('async_cb', 'async_err_cb'), byte_arrays=True) def restore(self, tree_id, parent_id, version_id, metadata, data_path, -- cgit v0.9.1