#2475 Retrieve correctly the file path for files in removable devices.
This commit is contained in:
parent
e2beb5b566
commit
f06404ca8e
1
NEWS
1
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)
|
* #2119 If config is missing start intro. (marco)
|
||||||
* #2083 Fix centering of items in the spread box. (marco)
|
* #2083 Fix centering of items in the spread box. (marco)
|
||||||
* #2486 In the intro screen name page enter goes to next page. (marco)
|
* #2486 In the intro screen name page enter goes to next page. (marco)
|
||||||
|
@ -211,16 +211,10 @@ def find(query, sorting=None, limit=None, offset=None, reply_handler=None,
|
|||||||
|
|
||||||
objects = []
|
objects = []
|
||||||
for props in props_list:
|
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']
|
object_id = props['uid']
|
||||||
del 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)
|
objects.append(ds_object)
|
||||||
|
|
||||||
return objects, total_count
|
return objects, total_count
|
||||||
|
Loading…
Reference in New Issue
Block a user