Commit edc5efc2 authored by Vincent Pelletier's avatar Vincent Pelletier

Expose whether total_size is the same as limit.

Allows telling user whether what he sees is the whole result set, or just
a limited sample of it.
parent ea78cb3e
......@@ -2018,6 +2018,7 @@ class ListBoxRenderer:
# Set the total number of objects.
self.total_size = sum([s.object_list_len for s in report_section_list])
self.is_sample = self.total_size == int(param_dict.get('limit', -1))
# Calculuate the start and the end offsets, and set the page numbers.
if max_lines == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment