ich versuche mit volgendem code einen Cookie zu setzen.
Code: Alles auswählen
def tplSend(tpl, tplvars={}, mimetype='text/html', status=200):
return Response(tplLoad(tpl, tplvars), mimetype=mimetype, status=status)
Code: Alles auswählen
return tplSend("index.html", tplvars).set_cookie('sessiontest', value='test')
Code: Alles auswählen
File "/usr/share/python-support/python-werkzeug/werkzeug/utils.py", line 1539, in <lambda>
return _patch_wrapper(f, lambda *a: f(*a)(*a[-2:]))
TypeError: 'NoneType' object is not callable