Commit 8f9e1dc6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_dms: Fixup PDF_getThumbnailList so that it works also with ERP5JS

Also, remove trailing whitespace
parent 6749766d
...@@ -10,7 +10,7 @@ page_number = int(content_information.get('Pages', 0)) ...@@ -10,7 +10,7 @@ page_number = int(content_information.get('Pages', 0))
limit = kw.get('limit', (0, 0)) limit = kw.get('limit', (0, 0))
list_start = int(kw.get('list_start', 0)) list_start = int(kw.get('list_start', 0))
list_lines = int(kw.get('list_lines', 0)) list_lines = int(kw.get('list_lines', 0))
size = list_lines or limit[1] size = list_lines or int(limit[1])
list_end = list_start + size list_end = list_start + size
page_list = range(page_number) page_list = range(page_number)
......
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