changeset 4190:a030da8b2ec9

Fixed: missing imports and falsely ported session middleware code
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 25 Jun 2008 01:02:45 +0200
parents 6246e8f813b7
children 5fdb6f984a54
files MoinMoin/web/session.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/session.py	Wed Jun 25 00:39:18 2008 +0200
+++ b/MoinMoin/web/session.py	Wed Jun 25 01:02:45 2008 +0200
@@ -7,7 +7,9 @@
     @copyright: 2008 MoinMoin:FlorianKrupicka
     @license: GNU GPL, see COPYING for details.
 """
+import time
 
+from werkzeug.utils import dump_cookie
 from werkzeug.contrib.sessions import FilesystemSessionStore, Session
 
 from MoinMoin.web.api import ISessionService
@@ -48,4 +50,4 @@
                                  cookie_lifetime, cookie_expires,
                                  request.cfg.cookie_domain,
                                  request.cfg.cookie_path)
-            request.headers.append(('Set-Cookie', cookie))
+            request.headers.add('Set-Cookie', cookie)