comparison main.py @ 0:4a34f72f036b

Add initial conversion service
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 26 Sep 2014 14:21:21 +0200
parents
children 7f546e8a6e7a
comparison
equal deleted inserted replaced
-1:000000000000 0:4a34f72f036b
1 # -*- coding: utf-8 -*-
2
3 from flask import Flask
4
5 from odfcast.convert import ConvertView
6
7 app = Flask(__name__)
8 app.config.from_object('odfcast.settings')
9 app.config.from_envvar('ODFCAST_SETTINGS', silent=True)
10
11
12 app.add_url_rule("/convert/",
13 view_func=ConvertView.as_view(
14 "convert",
15 app.config["PY3O_UNO_DRIVER"],
16 app.config["PY3O_UNO_SERVER_HOSTNAME"],
17 app.config["PY3O_UNO_SERVER_PORT"],
18 ))
19
20 if __name__ == "__main__":
21 app.run()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)