Commit 0773ff4d authored by Jérome Perrin's avatar Jérome Perrin

wip

parent 2bf8c345
Pipeline #19214 failed with stage
in 0 seconds
...@@ -38,7 +38,7 @@ from zope.interface import implements ...@@ -38,7 +38,7 @@ from zope.interface import implements
from cloudooo.interfaces.handler import IHandler from cloudooo.interfaces.handler import IHandler
from cloudooo.file import File from cloudooo.file import File
from cloudooo.util import logger, unzip, parseContentType from cloudooo.util import logger, unzip, parseContentType, loadMimetypeList
from cloudooo.handler.ooo.handler import Handler as OOoHandler from cloudooo.handler.ooo.handler import Handler as OOoHandler
from zipfile import ZipFile from zipfile import ZipFile
...@@ -179,6 +179,7 @@ class Handler(object): ...@@ -179,6 +179,7 @@ class Handler(object):
self._init_kw = kw self._init_kw = kw
self.file = File(base_folder_url, data, source_format) self.file = File(base_folder_url, data, source_format)
self.environment = kw.get("env", {}) self.environment = kw.get("env", {})
loadMimetypeList()
def convert(self, destination_format=None, **kw): def convert(self, destination_format=None, **kw):
""" Convert the inputed file to output as format that were informed """ """ Convert the inputed file to output as format that were informed """
......
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