dbapi.py
changeset 9573 99166335a8e0
parent 9469 032825bbacab
child 9770 112c884b2d8d
equal deleted inserted replaced
9572:73b2410bdadc 9573:99166335a8e0
   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