plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 6912dc4a14b4009d1dd8a74ff3384fb59902bbb6
parent 69d1c8841717bcb8ad42db9288ee29cae944330c
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 27 Jul 2014 18:29:47 +0200

fix irc and web frontends for diaeresis init

Diffstat:
plint_irc.py | 3+++
plint_web.py | 2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/plint_irc.py b/plint_irc.py @@ -3,6 +3,7 @@ import localization import re import sys +import diaeresis import rhyme from template import Template from pprint import pprint @@ -102,6 +103,8 @@ x = f.read() f.close() template = Template(x) +diaeresis.load_diaeresis('diaeresis.json') + template.reject_errors = True offset = 0 diff --git a/plint_web.py b/plint_web.py @@ -5,6 +5,7 @@ import localization import re import template import error +import diaeresis from bottle import run, Bottle, request, static_file, redirect, response from jinja2 import Environment, PackageLoader from json import dumps @@ -156,5 +157,6 @@ def q(lang): return dumps(d) if __name__ == '__main__': + diaeresis.load_diaeresis('diaeresis.json') run(app, port='5000', server="cherrypy", host="0.0.0.0")