Mercurial > libervia-web
diff src/twisted/plugins/libervia_server.py @ 712:bf562fb9c273
server_side: use Jinja2 template engine for static blog
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 13 Jul 2015 18:11:38 +0200 |
parents | 5319110a862c |
children | 3905bc24eb17 |
line wrap: on
line diff
--- a/src/twisted/plugins/libervia_server.py Mon Jul 13 13:33:01 2015 +0200 +++ b/src/twisted/plugins/libervia_server.py Mon Jul 13 18:11:38 2015 +0200 @@ -55,7 +55,7 @@ if not os.path.isfile(os.path.join(html, C.LIBERVIA_MAIN_PAGE)): raise ValueError("%s is not a Libervia's browser HTML directory" % os.path.realpath(html)) themes_dir = os.path.join(value, C.THEMES_DIR) - if not os.path.isfile(os.path.join(themes_dir, 'default/index.html')): + if not os.path.isfile(os.path.join(themes_dir, 'default/styles/blog.css')): raise ValueError("%s is not a Libervia's server data directory" % os.path.realpath(themes_dir)) return value