summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
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,