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

fix function names WIP

parent 49111f00
...@@ -45,6 +45,7 @@ from AccessControl import Unauthorized ...@@ -45,6 +45,7 @@ from AccessControl import Unauthorized
from DateTime import DateTime from DateTime import DateTime
import warnings import warnings
import six
# Global parameters # Global parameters
MAX_REPEAT = 10 MAX_REPEAT = 10
...@@ -661,7 +662,7 @@ class ContributionTool(BaseTool): ...@@ -661,7 +662,7 @@ class ContributionTool(BaseTool):
filename = os.path.basename(filename) filename = os.path.basename(filename)
filename = urllib.parse.quote(filename, safe='') # pylint:disable=redundant-keyword-arg filename = urllib.parse.quote(filename, safe='') # pylint:disable=redundant-keyword-arg
filename = filename.replace('%', '') 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 return file_object, filename, content_type
InitializeClass(ContributionTool) 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