Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-07-03 20:41:55 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-03 20:41:55 (GMT)
commit1f285bce14cad1daaa5791aba705d361b59fe08c (patch)
tree6556836e84158e0410dfb7b2de069ec5ab4d259f
parent72c67936bcd09ece72444111bf292d14a78c5adc (diff)
parent5861bab5dfb673f97118b241e771e5671a64682b (diff)
Merge branch 'master' of git+ssh://dev.laptop.org/git/projects/datastore
-rw-r--r--src/olpc/datastore/datastore.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/olpc/datastore/datastore.py b/src/olpc/datastore/datastore.py
index 10a51fd..b4fe356 100644
--- a/src/olpc/datastore/datastore.py
+++ b/src/olpc/datastore/datastore.py
@@ -68,8 +68,15 @@ class DataStore(dbus.service.Object):
# medium (maybe an SD card for example) and we'd want to keep
# that on the XO itself. In these cases their might be very
# little identifying information on the media itself.
- if not options: options = {}
- mp = self.connect_backingstore(uri, **options)
+
+ uri = str(uri)
+
+ _options = {}
+ if options:
+ for key, value in options.iteritems():
+ _options[str(key)] = str(value)
+
+ mp = self.connect_backingstore(uri, **_options)
if not mp: return ''
if mp.id in self.mountpoints:
self.mountpoints[mp.id].stop()