From f06404ca8ecb73ed9e38eddc566f3b78a87301a2 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 30 Jul 2007 16:21:42 +0200 Subject: [PATCH] #2475 Retrieve correctly the file path for files in removable devices. --- NEWS | 1 + sugar/datastore/datastore.py | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index df54ca88..a80bb48c 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 413f6d7c..e0b4afad 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