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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
23cbe279
Commit
23cbe279
authored
Feb 13, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web: py3 WIP
parent
e31b136c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
...tem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
+2
-2
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_formatAttachmentListToMIMEMultipartString.py
...rp5_web/Base_formatAttachmentListToMIMEMultipartString.py
+1
-1
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
View file @
23cbe279
...
@@ -270,7 +270,7 @@ def handleLinkedData(mime, data, href):
...
@@ -270,7 +270,7 @@ def handleLinkedData(mime, data, href):
"mime_type"
:
mime
,
"mime_type"
:
mime
,
"encode"
:
"quoted-printable"
if
mime
.
startswith
(
"text/"
)
else
None
,
"encode"
:
"quoted-printable"
if
mime
.
startswith
(
"text/"
)
else
None
,
"add_header_list"
:
[(
"Content-Location"
,
url
)],
"add_header_list"
:
[(
"Content-Location"
,
url
)],
"data"
:
str
(
data
),
"data"
:
bytes
(
data
),
})
})
return
url
return
url
else
:
else
:
...
@@ -335,7 +335,7 @@ def replaceFromDataUri(data_uri, replacer):
...
@@ -335,7 +335,7 @@ def replaceFromDataUri(data_uri, replacer):
data
=
b64decode
(
data
)
data
=
b64decode
(
data
)
if
not
is_base64
:
if
not
is_base64
:
data
=
replacer
(
data
)
data
=
replacer
(
data
)
return
"%s,%s"
%
(
header
,
b64encode
(
data
)
if
is_base64
else
data
)
return
"%s,%s"
%
(
header
,
b64encode
(
data
)
.
decode
()
if
is_base64
else
data
)
def
extractUrlSearch
(
url
):
def
extractUrlSearch
(
url
):
url
=
url
.
split
(
"#"
,
1
)[
0
].
split
(
"?"
,
1
)
url
=
url
.
split
(
"#"
,
1
)[
0
].
split
(
"?"
,
1
)
...
...
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_formatAttachmentListToMIMEMultipartString.py
View file @
23cbe279
...
@@ -80,7 +80,7 @@ def encode_quopri(msg):
...
@@ -80,7 +80,7 @@ def encode_quopri(msg):
when necessary.
when necessary.
"""
"""
orig
=
msg
.
get_payload
()
orig
=
msg
.
get_payload
()
encdata
=
quopri
.
encodestring
(
orig
.
encode
()).
replace
(
"=
\
n
"
,
"=
\
r
\
n
"
)
encdata
=
quopri
.
encodestring
(
orig
.
encode
()).
replace
(
b"=
\
n
"
,
b
"=
\
r
\
n
"
)
msg
.
set_payload
(
encdata
)
msg
.
set_payload
(
encdata
)
msg
.
add_header
(
"Content-Transfer-Encoding"
,
"quoted-printable"
)
msg
.
add_header
(
"Content-Transfer-Encoding"
,
"quoted-printable"
)
...
...
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