Add a pre_filtered_list method in collection. This allow filters optimizations

This commit is contained in:
Florian Mounier 2016-07-08 11:37:30 +02:00
parent 8c225f019c
commit 39823f8909
2 changed files with 10 additions and 1 deletions

View file

@ -837,7 +837,7 @@ def report(path, xml_request, collection):
else:
# Reference is a collection
path = hreference
items = [collection.get(href) for href, etag in collection.list()]
items = collection.pre_filtered_list(filters)
for item in items:
if filters: