summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-07 18:41:29 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-07 18:41:29 +0100
commit9acc25a393b9bd0fa8284f8694c095618c78d631 (patch)
treeeeb9a3f44baff123a862b4dd6f5d5971b46a40ff /controller.py
parentb5b6ef3e7bd559a1b34632ed68c4fb68ff7b4df7 (diff)
downloadkosten-9acc25a393b9bd0fa8284f8694c095618c78d631.tar.gz
kosten-9acc25a393b9bd0fa8284f8694c095618c78d631.tar.bz2
kosten-9acc25a393b9bd0fa8284f8694c095618c78d631.zip
Instead of overloading the normal 'render' function, add a 'render_utf8' method
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/controller.py b/controller.py
index 9f46e0a..95dba66 100644
--- a/controller.py
+++ b/controller.py
@@ -15,12 +15,9 @@ from sqlalchemy import sql
class Form (form.Form):
"""Make sure we return utf-8 stuff."""
- def render (self, *args):
+ def render_utf8 (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: