diff main.py @ 30:9d65de2ebe22

Merge TemplateConvertView into ConvertView Also improve temporary file handling.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 16 Oct 2014 10:34:43 +0200
parents 709edf15f90e
children 5c3aba401382
line wrap: on
line diff
--- a/main.py	Thu Oct 16 10:03:32 2014 +0200
+++ b/main.py	Thu Oct 16 10:34:43 2014 +0200
@@ -10,8 +10,7 @@
 if app.config["DEBUG"]:
     logging.basicConfig(level=logging.DEBUG)
 
-from odfcast.convert import ConvertView, TemplateConvertView, MergeView, \
-    TemplateView
+from odfcast.convert import ConvertView, MergeView, TemplateView
 
 
 app.add_url_rule("/convert/",
@@ -21,13 +20,6 @@
                      app.config["PY3O_UNO_SERVER_HOSTNAME"],
                      app.config["PY3O_UNO_SERVER_PORT"],
                  ))
-app.add_url_rule("/template/",
-                 view_func=TemplateConvertView.as_view(
-                     "template",
-                     app.config["PY3O_UNO_DRIVER"],
-                     app.config["PY3O_UNO_SERVER_HOSTNAME"],
-                     app.config["PY3O_UNO_SERVER_PORT"],
-                 ))
 app.add_url_rule("/merge/",
                  view_func=MergeView.as_view("merge"),
                  )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)