web/views/sessions.py
changeset 1808 aa09e20dd8c0
parent 1802 d628defebc17
child 1977 606923dff11b
--- a/web/views/sessions.py	Tue May 05 17:18:49 2009 +0200
+++ b/web/views/sessions.py	Thu May 14 12:48:11 2009 +0200
@@ -2,18 +2,18 @@
 object :/
 
 :organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
 
-from cubicweb.web import ExplicitLogin, InvalidSession
+from cubicweb.web import InvalidSession
 from cubicweb.web.application import AbstractSessionManager
 
 
 class InMemoryRepositorySessionManager(AbstractSessionManager):
     """manage session data associated to a session identifier"""
-    
+
     def __init__(self):
         AbstractSessionManager.__init__(self)
         # XXX require a RepositoryAuthenticationManager which violates
@@ -23,7 +23,7 @@
 
     def current_sessions(self):
         return self._sessions.values()
-    
+
     def get_session(self, req, sessionid):
         """return existing session for the given session identifier"""
         if not sessionid in self._sessions:
@@ -47,13 +47,13 @@
 
     def open_session(self, req):
         """open and return a new session for the given request
-        
+
         :raise ExplicitLogin: if authentication is required
         """
         session = self.authmanager.authenticate(req)
         self._sessions[session.sessionid] = session
         return session
-    
+
     def close_session(self, session):
         """close session on logout or on invalid session detected (expired out,
         corrupted...)
@@ -66,4 +66,3 @@
             # already closed, may occurs if the repository session expired but
             # not the web session
             pass
-