diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2011-02-07 18:41:29 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2011-02-07 18:41:29 +0100 |
commit | 9acc25a393b9bd0fa8284f8694c095618c78d631 (patch) | |
tree | eeb9a3f44baff123a862b4dd6f5d5971b46a40ff /controller.py | |
parent | b5b6ef3e7bd559a1b34632ed68c4fb68ff7b4df7 (diff) | |
download | kosten-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.py | 5 |
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: |