Commit 357a7284 authored by Nicolas Delaby's avatar Nicolas Delaby

Simplify code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c58b18bd
......@@ -112,12 +112,10 @@ def application(global_config, **local_config):
openoffice_port, **kw)
openoffice.release()
mimetype_registry = local_config.get("mimetype_registry", "")
kw["mimetype_registry"] = filter(None, mimetype_registry.split("\n"))
kw["mimetype_registry"] = handler_mapping_list = \
filter(None, mimetype_registry.split("\n"))
handler_dict = {}
handler_mapping_list = mimetype_registry.split("\n")
for line in handler_mapping_list:
if not line:
continue
input_mimetype, output_mimetype, handler = line.strip().split()
if handler not in handler_dict:
import_path = "cloudooo.handler.%s.handler" % handler
......
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