diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-07-03 17:28:08 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-07-03 17:28:08 (GMT) |
commit | 5861bab5dfb673f97118b241e771e5671a64682b (patch) | |
tree | 36133fcc0e944140ae80d9b2a2768134a54e3d5c | |
parent | ffaeca0e3b1e614dbe31262759e542b60ba9539e (diff) |
Add workaround for #1833.
-rw-r--r-- | src/olpc/datastore/datastore.py | 11 |
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() |