kleine Anpassung fuer ramus und python 2.7

This commit is contained in:
phil 2015-04-04 19:51:53 +00:00
parent 3196747cd9
commit e84e413dd7

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2.6 #!/usr/bin/env python2.7
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
@ -506,7 +506,7 @@ def render(filename, input_data=None, **values):
if "user_hash_key" in values: if "user_hash_key" in values:
response.set_cookie("user_hash_key", values["user_hash_key"], response.set_cookie("user_hash_key", values["user_hash_key"],
max_age=365, path="/") max_age=365, path="/")
response.body = stream.render("html", doctype="html") response.text = stream.render("html", doctype="html")
return response return response
def get_poll_id(hash_key): def get_poll_id(hash_key):