Commit be78bb9e authored by Jérome Perrin's avatar Jérome Perrin

fixup! *: use base64 encodebytes for python3.9

parent 1c29f6fa
""" """
Proxy role as Manager is required here to access getResultList Proxy role as Manager is required here to access getResultList
""" """
from base64 import decodebytes from base64 import b64decode
if REQUEST: if REQUEST:
return RuntimeError("You cannot run this script in the url") return RuntimeError("You cannot run this script in the url")
...@@ -11,7 +11,7 @@ pdf_data_list = [] ...@@ -11,7 +11,7 @@ pdf_data_list = []
for result in active_process.getResultList(): for result in active_process.getResultList():
if result.reference in image_list: if result.reference in image_list:
pdf_data_list.append( pdf_data_list.append(
image_module.newContent(data=decodebytes(result.detail), image_module.newContent(data=b64decode(result.detail),
portal_type="Image", portal_type="Image",
temp_object=True).convert(format="pdf")[1]) temp_object=True).convert(format="pdf")[1])
......
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