diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2012-02-26 23:36:43 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2012-02-26 23:36:43 +0100 |
commit | ec4b54dd0f27e59087c5f087dedf5fee51fd9000 (patch) | |
tree | 6b3edbb6dfce73186dc0e4e513bed8e83235c25d | |
parent | dc36e320ef4d90b0bf802c6b54877971e2249d1a (diff) | |
download | kosten-ec4b54dd0f27e59087c5f087dedf5fee51fd9000.tar.gz kosten-ec4b54dd0f27e59087c5f087dedf5fee51fd9000.tar.bz2 kosten-ec4b54dd0f27e59087c5f087dedf5fee51fd9000.zip |
UTF8 error
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> |