#2475 Retrieve correctly the file path for files in removable devices.

This commit is contained in:
Tomeu Vizoso 2007-07-30 16:21:42 +02:00
parent e2beb5b566
commit f06404ca8e
2 changed files with 2 additions and 7 deletions

1
NEWS
View File

@ -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)

View File

@ -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