summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-07 18:35:49 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-07 18:35:49 +0100
commit2c753b34c4327b4abc2dee893c8a760f13f2bccb (patch)
tree4710606750c302c30a6d8b75b73707c4d9fe89a5 /controller.py
parentf84236490f9102f41451e151238a1a0f3a319067 (diff)
downloadkosten-2c753b34c4327b4abc2dee893c8a760f13f2bccb.tar.gz
kosten-2c753b34c4327b4abc2dee893c8a760f13f2bccb.tar.bz2
kosten-2c753b34c4327b4abc2dee893c8a760f13f2bccb.zip
unicode aware form
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/controller.py b/controller.py
index 5312b5a..4634bf5 100644
--- a/controller.py
+++ b/controller.py
@@ -12,6 +12,15 @@ import datetime, decimal
import operator as op
from sqlalchemy import sql
+class Form (form.Form):
+ """Make sure we return utf-8 stuff."""
+
+ def render (self, *args):
+ return form.Form.render(self, *args).decode("utf-8")
+
+ def rendernote (self, *args):
+ return form.Form.rendernote(self, *args).decode("utf-8")
+
class Show:
def GET(self, year = '', month = ''):
if year:
@@ -82,7 +91,7 @@ class Add:
raise web.seeother("/add")
def form(self):
- return form.Form(
+ return Form(
form.Textbox(
"date",
form.notnull,