From a0c93aebaeed34d9f672bb3dc90d260f3d86dd36 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Sat, 13 Jul 2019 11:52:55 +0000 Subject: [PATCH] publish muk_web_export - 11.0 --- muk_web_export/__manifest__.py | 3 +- muk_web_export/controllers/main.py | 4 +- muk_web_export/views/convert.xml | 74 ++++++++++++++++-------------- 3 files changed, 44 insertions(+), 37 deletions(-) diff --git a/muk_web_export/__manifest__.py b/muk_web_export/__manifest__.py index 563f57f..07e91ba 100644 --- a/muk_web_export/__manifest__.py +++ b/muk_web_export/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Export", "summary": """File Export Dialog""", - "version": "11.0.1.0.3", + "version": "11.0.1.0.4", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", @@ -28,6 +28,7 @@ "author": "MuK IT", "contributors": [ "Mathias Markl ", + "Kerrim Abd El-Hamed ", ], "depends": [ "web", diff --git a/muk_web_export/controllers/main.py b/muk_web_export/controllers/main.py index b957c11..cd79360 100644 --- a/muk_web_export/controllers/main.py +++ b/muk_web_export/controllers/main.py @@ -35,12 +35,12 @@ class ExportController(http.Controller): @http.route('/web/export_formats', type='json', auth="user") def export_formats(self, **kw): - return converter.imports() + return converter.formats() @http.route('/web/check_export', type='json', auth="user") def check_export(self, filename, **kw): try: - if os.path.splitext(filename)[1][1:].strip().lower() in converter.imports(): + if os.path.splitext(filename)[1][1:].strip().lower() in converter.formats(): return True except Exception: return False diff --git a/muk_web_export/views/convert.xml b/muk_web_export/views/convert.xml index 9f2bc17..b2c9f2d 100644 --- a/muk_web_export/views/convert.xml +++ b/muk_web_export/views/convert.xml @@ -1,34 +1,40 @@ - - - - - - - - muk_converter_convert.form - muk_converter.convert - primary - - - - 1 - - - - - + + + + + + + + muk_converter_convert.form + muk_converter.convert + primary + + + + 1 + + + 1 + + + 1 + + + + +