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