dbapi.py
changeset 6293 df44d7163582
parent 6279 42079f752a9c
child 6333 e3994fcc21c3
equal deleted inserted replaced
6292:054fa36060d5 6293:df44d7163582
   597     @check_not_closed
   597     @check_not_closed
   598     def check(self):
   598     def check(self):
   599         """raise `BadConnectionId` if the connection is no more valid, else
   599         """raise `BadConnectionId` if the connection is no more valid, else
   600         return its latest activity timestamp.
   600         return its latest activity timestamp.
   601         """
   601         """
   602         self._repo.check_session(self.sessionid)
   602         return self._repo.check_session(self.sessionid)
   603 
   603 
   604     def _txid(self, cursor=None): # XXX could now handle various isolation level!
   604     def _txid(self, cursor=None): # XXX could now handle various isolation level!
   605         # return a dict as bw compat trick
   605         # return a dict as bw compat trick
   606         return {'txid': currentThread().getName()}
   606         return {'txid': currentThread().getName()}
   607 
   607