Mercurial > odfcast > odfcast
comparison odfcast/__init__.py @ 73:02efda1f6919
issue5117: service for checking a pdf for merging readiness added.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 06 Mar 2015 14:56:26 +0100 |
parents | 4b78fe544b09 |
children |
comparison
equal
deleted
inserted
replaced
72:77c3e481bea9 | 73:02efda1f6919 |
---|---|
10 app.config.from_envvar('ODFCAST_SETTINGS', silent=True) | 10 app.config.from_envvar('ODFCAST_SETTINGS', silent=True) |
11 | 11 |
12 if app.config["DEBUG"]: | 12 if app.config["DEBUG"]: |
13 logging.basicConfig(level=logging.DEBUG) | 13 logging.basicConfig(level=logging.DEBUG) |
14 | 14 |
15 from odfcast.convert import ConvertView, MergeView, TemplateView | 15 from odfcast.convert import ConvertView, MergeView, CheckView, TemplateView |
16 | 16 |
17 | 17 |
18 app.add_url_rule("/convert/", | 18 app.add_url_rule("/convert/", |
19 view_func=ConvertView.as_view( | 19 view_func=ConvertView.as_view( |
20 "convert", | 20 "convert", |
23 app.config["PY3O_UNO_SERVER_PORT"], | 23 app.config["PY3O_UNO_SERVER_PORT"], |
24 )) | 24 )) |
25 app.add_url_rule("/merge/", | 25 app.add_url_rule("/merge/", |
26 view_func=MergeView.as_view("merge"), | 26 view_func=MergeView.as_view("merge"), |
27 ) | 27 ) |
28 app.add_url_rule("/check/", | |
29 view_func=CheckView.as_view("check"), | |
30 ) | |
28 app.add_url_rule("/", | 31 app.add_url_rule("/", |
29 view_func=TemplateView.as_view("index", "index.html"), | 32 view_func=TemplateView.as_view("index", "index.html"), |
30 ) | 33 ) |