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