summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2012-02-26 23:36:43 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2012-02-26 23:36:43 +0100
commitec4b54dd0f27e59087c5f087dedf5fee51fd9000 (patch)
tree6b3edbb6dfce73186dc0e4e513bed8e83235c25d
parentdc36e320ef4d90b0bf802c6b54877971e2249d1a (diff)
downloadkosten-ec4b54dd0f27e59087c5f087dedf5fee51fd9000.tar.gz
kosten-ec4b54dd0f27e59087c5f087dedf5fee51fd9000.tar.bz2
kosten-ec4b54dd0f27e59087c5f087dedf5fee51fd9000.zip
UTF8 error
Diffstat (limited to '')
-rw-r--r--controller.py8
-rw-r--r--templates/pages/add.mako2
-rw-r--r--templates/pages/constadd.mako2
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>