Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--sugar/datastore/datastore.py8
2 files changed, 2 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index df54ca8..a80bb48 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+* #2475 Retrieve correctly the file path for files in removable devices. (tomeu)
* #2119 If config is missing start intro. (marco)
* #2083 Fix centering of items in the spread box. (marco)
* #2486 In the intro screen name page enter goes to next page. (marco)
diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py
index 413f6d7..e0b4afa 100644
--- a/sugar/datastore/datastore.py
+++ b/sugar/datastore/datastore.py
@@ -211,16 +211,10 @@ def find(query, sorting=None, limit=None, offset=None, reply_handler=None,
objects = []
for props in props_list:
- if props.has_key('filename') and props['filename']:
- file_path = props['filename']
- del props['filename']
- else:
- file_path = None
-
object_id = props['uid']
del props['uid']
- ds_object = DSObject(object_id, DSMetadata(props), file_path)
+ ds_object = DSObject(object_id, DSMetadata(props), None)
objects.append(ds_object)
return objects, total_count