kleine Anpassung fuer ramus und python 2.7
This commit is contained in:
parent
3196747cd9
commit
e84e413dd7
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue