diff options
Diffstat (limited to '')
-rw-r--r-- | controller.py | 8 | ||||
-rw-r--r-- | templates/pages/add.mako | 2 | ||||
-rw-r--r-- | templates/pages/constadd.mako | 2 |
3 files changed, 3 insertions, 9 deletions
diff --git a/controller.py b/controller.py index 5ed1c43..39e8d7a 100644 --- a/controller.py +++ b/controller.py @@ -3,7 +3,7 @@ from __future__ import with_statement import web from web import form -from web.form import Validator +from web.form import Validator, Form from model import * from helper import appdir @@ -14,12 +14,6 @@ import itertools as iter import operator as op from sqlalchemy import sql -class Form (form.Form): - """Make sure we return utf-8 stuff.""" - - def render_utf8 (self, *args): - return form.Form.render(self, *args).decode("utf-8") - class Show: def GET(self, year = '', month = ''): if year: diff --git a/templates/pages/add.mako b/templates/pages/add.mako index e104fc5..c1f4ae7 100644 --- a/templates/pages/add.mako +++ b/templates/pages/add.mako @@ -5,7 +5,7 @@ % endif <form name="add_expense" method="post"> - ${form.render_utf8()} + ${form.render()} <input type="submit" /> </form> diff --git a/templates/pages/constadd.mako b/templates/pages/constadd.mako index 9b7df64..68a276f 100644 --- a/templates/pages/constadd.mako +++ b/templates/pages/constadd.mako @@ -5,7 +5,7 @@ % endif <form name="add_const_expense" method="post"> - ${form.render_utf8()} + ${form.render()} <input type="submit" /> </form> |