Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-10-07 14:17:23 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-10-07 14:17:23 (GMT)
commitf6d8c721121bc3e4546540cd35b3d0d3703a97dc (patch)
tree63816cdc777034343bce633be98b20095841d441
parent05a5877e2483ae2571b2f4b4dc23a2c0d0dbd895 (diff)
Request binary data as dbus.ByteArray.
-rw-r--r--NEWS2
-rw-r--r--src/olpc/datastore/datastore.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 9c291b0..f1fb2b2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+* Request binary data as dbus.ByteArray. (tomeu)
+
Snapshot 23becaa683
* Don't mount automatically at start. (tomeu)
diff --git a/src/olpc/datastore/datastore.py b/src/olpc/datastore/datastore.py
index d972933..b5d67b9 100644
--- a/src/olpc/datastore/datastore.py
+++ b/src/olpc/datastore/datastore.py
@@ -198,7 +198,8 @@ class DataStore(dbus.service.Object):
@dbus.service.method(DS_DBUS_INTERFACE,
in_signature='a{sv}sb',
out_signature='s',
- async_callbacks=('async_cb', 'async_err_cb'))
+ async_callbacks=('async_cb', 'async_err_cb'),
+ byte_arrays=True)
def create(self, props, filelike=None, transfer_ownership=False, async_cb=None, async_err_cb=None):
"""create a new entry in the datastore. If a file is passed it
will be consumed by the datastore. Because the repository has
@@ -439,7 +440,8 @@ class DataStore(dbus.service.Object):
@dbus.service.method(DS_DBUS_INTERFACE,
in_signature='sa{sv}sb',
out_signature='',
- async_callbacks=('async_cb', 'async_err_cb'))
+ async_callbacks=('async_cb', 'async_err_cb'),
+ byte_arrays=True)
def update(self, uid, props, filelike=None, transfer_ownership=False,
async_cb=None, async_err_cb=None):
"""Record the current state of the object checked out for a