changeset 5575:17cf01154e12

sessions: remove code not needed any more due to new werkzeug session code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 23 Feb 2010 02:29:09 +0100
parents 8b9acb287705
children 6b94d284ad11
files MoinMoin/web/session.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/session.py	Tue Feb 23 00:14:14 2010 +0100
+++ b/MoinMoin/web/session.py	Tue Feb 23 02:29:09 2010 +0100
@@ -174,9 +174,6 @@
 # end copy of werkzeug 0.6 code
 
 
-class FixedFilesystemSessionStore(FilesystemSessionStore):
-    """ no fix currently """
-
 class MoinSession(Session):
     """ Compatibility interface to Werkzeug-sessions for old Moin-code.
 
@@ -231,6 +228,7 @@
         return forever
     return abs(lifetime)
 
+
 def get_cookie_name(request, name, usage, software='MOIN'):
     """
     Determine the full cookie name for some software (usually 'MOIN') using
@@ -295,8 +293,8 @@
             filesys.mkdir(path)
         except OSError:
             pass
-        return FixedFilesystemSessionStore(path=path, filename_template='%s',
-                                           session_class=MoinSession, mode=0666 & config.umask)
+        return FilesystemSessionStore(path=path, filename_template='%s',
+                                      session_class=MoinSession, mode=0666 & config.umask)
 
     def get_session(self, request, sid=None):
         if sid is None:
@@ -307,7 +305,7 @@
         if sid is None:
             session = store.new()
         else:
-            session = store.get(str(sid))
+            session = store.get(sid)
         logging.debug("get_session returns session %r" % session)
         return session