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-06-28 08:43:38 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-28 08:43:38 (GMT)
commit2ccf9c0b16e7187f36b896fb62d1782666f1f091 (patch)
tree61379bef554a814567ba2df826decb16cc5917b3
parent9cdd9058da2609f0f4f827f0af62666401fe001c (diff)
Added umount method to datastore.py.
-rw-r--r--sugar/datastore/datastore.py3
-rw-r--r--sugar/datastore/dbus_helpers.py3
2 files changed, 6 insertions, 0 deletions
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()