Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
8f9e1dc6
Commit
8f9e1dc6
authored
Apr 12, 2021
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_dms: Fixup PDF_getThumbnailList so that it works also with ERP5JS
Also, remove trailing whitespace
parent
6749766d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_getThumbnailList.py
...emplateItem/portal_skins/erp5_dms/PDF_getThumbnailList.py
+2
-2
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_getThumbnailList.py
View file @
8f9e1dc6
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment