dbapi.py
changeset 7595 83872394b5d9
parent 7543 570522300e22
parent 7589 d3459fe041f0
child 7650 278fe9c1f3ad
equal deleted inserted replaced
7591:cb6ece9cdb78 7595:83872394b5d9
   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