From 2ccf9c0b16e7187f36b896fb62d1782666f1f091 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 28 Jun 2007 08:43:38 +0000 Subject: Added umount method to datastore.py. --- (limited to 'sugar/datastore') diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py index 5697940..c907c96 100644 --- a/sugar/datastore/datastore.py +++ b/sugar/datastore/datastore.py @@ -145,5 +145,8 @@ def find(query, sorting=None, limit=None, offset=None, reply_handler=None, def mount(uri, options): return dbus_helpers.mount(uri, options) +def unmount(mount_point_id): + dbus_helpers.unmount(mount_point_id) + def mounts(): return dbus_helpers.mounts() diff --git a/sugar/datastore/dbus_helpers.py b/sugar/datastore/dbus_helpers.py index d642988..76299c1 100644 --- a/sugar/datastore/dbus_helpers.py +++ b/sugar/datastore/dbus_helpers.py @@ -69,6 +69,9 @@ def find(query, reply_handler, error_handler): def mount(uri, options): return _data_store.mount(uri, options) +def unmount(mount_point_id): + _data_store.unmount(mount_point_id) + def mounts(): return _data_store.mounts() -- cgit v0.9.1