Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gdatastore/datastore.py
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2012-02-20 16:24:47 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2012-02-20 16:24:47 (GMT)
commit7023b15eb1c40670b463c6fbb6efd02f9b2c8d2c (patch)
tree146a4fd818021b01963452a578ec0fc861e248ac /gdatastore/datastore.py
parent0301a9cb26c58124a44202b1adc50aa6a9f086d1 (diff)
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.
Diffstat (limited to 'gdatastore/datastore.py')
-rw-r--r--gdatastore/datastore.py2
1 files changed, 1 insertions, 1 deletions
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,