Commit 6d98a523 authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Jérome Perrin

fix function names WIP

parent 92344d10
......@@ -45,6 +45,7 @@ from AccessControl import Unauthorized
from DateTime import DateTime
import warnings
import six
# Global parameters
MAX_REPEAT = 10
......@@ -657,7 +658,7 @@ class ContributionTool(BaseTool):
filename = os.path.basename(filename)
filename = urllib.parse.quote(filename, safe='') # pylint:disable=redundant-keyword-arg
filename = filename.replace('%', '')
content_type = header_info.gettype()
content_type = header_info.gettype() if six.PY2 else header_info.get_content_type()
return file_object, filename, content_type
InitializeClass(ContributionTool)
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