equal
deleted
inserted
replaced
243 class DBAPISession(object): |
243 class DBAPISession(object): |
244 def __init__(self, cnx, login=None): |
244 def __init__(self, cnx, login=None): |
245 self.cnx = cnx |
245 self.cnx = cnx |
246 self.data = {} |
246 self.data = {} |
247 self.login = login |
247 self.login = login |
248 self.mtime = time() |
|
249 # dbapi session identifier is the same as the first connection |
248 # dbapi session identifier is the same as the first connection |
250 # identifier, but may later differ in case of auto-reconnection as done |
249 # identifier, but may later differ in case of auto-reconnection as done |
251 # by the web authentication manager (in cw.web.views.authentication) |
250 # by the web authentication manager (in cw.web.views.authentication) |
252 if cnx is not None: |
251 if cnx is not None: |
253 self.sessionid = cnx.sessionid |
252 self.sessionid = cnx.sessionid |