[Written to be prettier (?) Panu Kalliokoski **20050401152309 Keywords: (atehwa@sange.fi--2005/piki--prod--1--patch-6) ] { hunk ./piki.py 206 + problem = None hunk ./piki.py 210 - except KeyError: + except KeyError: problem = "Fix your calibration." + else: + if no_nonempty_common_lines(savetext, oldtext): + problem = "Don't be quite so pushy." + if "sex" in savetext or pagename.lower() == "frontpage": + problem = "You said a bad word." + if problem: hunk ./piki.py 218 - print "

Boo! Fix your calibration.

" + print "

Boo! %s

" % problem hunk ./piki.py 220 - if no_nonempty_common_lines(savetext, oldtext): - emit_header() - print "

Boo! Don't be quite so pushy.

" - return - if "sex" in savetext or pagename.lower() == "frontpage": - emit_header() - print "

Boo! You said a bad word.

" - return + }