server/session.py
changeset 9121 182c620c960b
parent 9120 fa513ac7a2a5
child 9122 1d109fb9c67c
equal deleted inserted replaced
9120:fa513ac7a2a5 9121:182c620c960b
  1423             return self.__threaddata.cnx
  1423             return self.__threaddata.cnx
  1424         except AttributeError:
  1424         except AttributeError:
  1425             self.set_cnx()
  1425             self.set_cnx()
  1426             return self.__threaddata.cnx
  1426             return self.__threaddata.cnx
  1427 
  1427 
  1428     @property
       
  1429     def _current_cnx_id(self):
       
  1430         """TRANSITIONAL PURPOSE"""
       
  1431         try:
       
  1432             return self.__threaddata.cnx.transactionid
       
  1433         except AttributeError:
       
  1434             return None
       
  1435 
       
  1436     def get_option_value(self, option, foreid=None):
  1428     def get_option_value(self, option, foreid=None):
  1437         return self.repo.get_option_value(option, foreid)
  1429         return self.repo.get_option_value(option, foreid)
  1438 
  1430 
  1439     def transaction(self, free_cnxset=True):
  1431     def transaction(self, free_cnxset=True):
  1440         """return context manager to enter a transaction for the session: when
  1432         """return context manager to enter a transaction for the session: when