From 31553b7718a71444094eed8fc649e4b1a5f0d677 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sun, 14 Feb 2016 19:18:39 +0100 Subject: [PATCH] Add WSGI ability --- app.py | 10 ++++++++++ views/template.tpl | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 app.py diff --git a/app.py b/app.py new file mode 100755 index 0000000..9ad2bf0 --- /dev/null +++ b/app.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 +import bottle +import main +import os +# Change working directory so relative paths (and template lookup) work again +os.chdir(os.path.dirname(__file__)) + +# ... build or import your bottle application here ... +# Do NOT use bottle.run() with mod_wsgi +application = bottle.default_app() diff --git a/views/template.tpl b/views/template.tpl index b1785b4..7f0df9e 100644 --- a/views/template.tpl +++ b/views/template.tpl @@ -63,7 +63,7 @@ % else: No OpenAccess version found. - % if v["sharable"] is not None: + % if v["sharable"] is None: OpenAccess policy is unknown. % elif v["sharable"]: It could be shared.