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,14 +10,14 @@ page_number = int(content_information.get('Pages', 0))
limit = kw.get('limit', (0, 0))
list_start = int(kw.get('list_start', 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
page_list = range(page_number)
result = []
for i in page_list[list_start:list_end]:
x = {'title': '%s' %i,
x = {'title': '%s' %i,
'frame':'%s' %i} # frame is used by listbox render field
temp_object = newTempBase(context, x['title'], **x)
result.append(temp_object)
......
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