From 2ccf9c0b16e7187f36b896fb62d1782666f1f091 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 28 Jun 2007 10:43:38 +0200 Subject: [PATCH] Added umount method to datastore.py. --- sugar/datastore/datastore.py | 3 +++ sugar/datastore/dbus_helpers.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py index 5697940c..c907c96f 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 d642988b..76299c10 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()