changeset 20:c289263e1b24

Add url rule for new MergeView
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 29 Sep 2014 15:59:56 +0200
parents 2f627039d2b4
children a8c628466a9d
files main.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main.py	Mon Sep 29 15:59:36 2014 +0200
+++ b/main.py	Mon Sep 29 15:59:56 2014 +0200
@@ -10,7 +10,7 @@
 if app.config["DEBUG"]:
     logging.basicConfig(level=logging.DEBUG)
 
-from odfcast.convert import ConvertView, TemplateConvertView
+from odfcast.convert import ConvertView, TemplateConvertView, MergeView
 
 
 app.add_url_rule("/convert/",
@@ -27,6 +27,9 @@
                      app.config["PY3O_UNO_SERVER_HOSTNAME"],
                      app.config["PY3O_UNO_SERVER_PORT"],
                  ))
+app.add_url_rule("/merge/",
+                 view_func=MergeView.as_view("merge"),
+                 )
 
 if __name__ == "__main__":
     app.run()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)