plint

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

commit 72a268ed76fcae5681d7b4c898efd4ee7f748457
parent 6694f6d550bcf58037092dc0b1b399ac11f47386
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 14 Mar 2012 19:04:31 +0100

valid or invalid in page title

Diffstat:
TODO | 1-
plint_web.py | 4++++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO @@ -4,7 +4,6 @@ TODO undo for irc TODO "et cette belle une" ? -[Valid] ou [Invalid] dans le titre Help text in French link to drime, and from drime diff --git a/plint_web.py b/plint_web.py @@ -80,6 +80,10 @@ def q(): d['result'] = r d['firsterror'] = firsterror d['nerror'] = nerror + if nerror == 0: + d['title'] = "[Valid] " + get_title() + else: + d['title'] = "[Invalid] " + get_title() return env.get_template('results.html').render(**d) if __name__ == '__main__':