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
141
Merge Requests
141
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
5ba25e2a
Commit
5ba25e2a
authored
Jul 29, 2023
by
Emmy Vouriot
Committed by
Arnaud Fontaine
Jul 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix function names WIP
parent
db3ff1e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.ContributionTool.py
...plateItem/portal_components/tool.erp5.ContributionTool.py
+1
-1
product/ERP5Type/Utils.py
product/ERP5Type/Utils.py
+5
-6
No files found.
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.ContributionTool.py
View file @
5ba25e2a
...
...
@@ -647,7 +647,7 @@ class ContributionTool(BaseTool):
# if a content-disposition header is present,
# try first to read the suggested filename from it.
header_info
=
url_file
.
info
()
content_disposition
=
header_info
.
get
header
(
'content-disposition'
,
''
)
content_disposition
=
header_info
.
get
(
'content-disposition'
,
''
)
filename
=
parse_header
(
content_disposition
)[
1
].
get
(
'filename'
)
if
not
filename
:
# Now read the filename from url.
...
...
product/ERP5Type/Utils.py
View file @
5ba25e2a
...
...
@@ -29,7 +29,6 @@
# Required modules - some modules are imported later to prevent circular deadlocks
from
__future__
import
absolute_import
from
six
import
int2byte
as
chr
from
six
import
string_types
as
basestring
from
six.moves
import
xrange
import
six
...
...
@@ -1853,11 +1852,11 @@ def guessEncodingFromText(data, content_type='text/html'):
_reencodeUrlEscapes_map = {chr(x): chr(x) if chr(x) in
# safe
str2bytes(
"!'
()
*-
.
" "
0123456789
" "
_
~
"
"
ABCDEFGHIJKLMNOPQRSTUVWXYZ
"
"
abcdefghijklmnopqrstuvwxyz
"
# reserved (maybe unsafe)
"
#$&+,/:;=?@[]")
"!'
()
*-
.
" "
0123456789
" "
_
~
"
"
ABCDEFGHIJKLMNOPQRSTUVWXYZ
"
"
abcdefghijklmnopqrstuvwxyz
"
# reserved (maybe unsafe)
"
#$&+,/:;=?@[]"
else
"%%%02X"
%
x
for
x
in
xrange
(
256
)}
...
...
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